1 /* |
1 /* |
2 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
38 * Gets an iterator of implementations of the specified SPI. |
38 * Gets an iterator of implementations of the specified SPI. |
39 * |
39 * |
40 * <p> |
40 * <p> |
41 * This method works as a kind of directory service |
41 * This method works as a kind of directory service |
42 * for SPIs, allowing various components to define private contract |
42 * for SPIs, allowing various components to define private contract |
43 * and talk to each other. However unlike {@link Component.getSPI}, this |
43 * and talk to each other. However unlike {@link Component#getSPI(java.lang.Class)}, this |
44 * method can support cases where there is an ordered collection (defined |
44 * method can support cases where there is an ordered collection (defined |
45 * by {@link Iterable} of implementations. The SPI contract should define |
45 * by {@link Iterable} of implementations. The SPI contract should define |
46 * whether lookups are for the first appropriate implementation or whether |
46 * whether lookups are for the first appropriate implementation or whether |
47 * all returned implementations should be used. |
47 * all returned implementations should be used. |
48 * |
48 * |