|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

@Generated(value="org.jomc.tools.JavaSources",
comments="See http://jomc.sourceforge.net/jomc/1.0-alpha-3/jomc-tools")
public interface LocatorLocates implementation instances.
This specification declares a multiplicity of Many.
An application assembler may provide multiple implementations of this specification (including none).
Use of class ObjectManager is supported for getting these implementations or for
selecting a single implementation.
Locator[] objects = (Locator[]) ObjectManagerFactory.getObjectManager().getObject( Locator.class ); Locator object = ObjectManagerFactory.getObjectManager().getObject( Locator.class, "implementation name" );
This specification does not apply to any scope. A new object is returned whenever requested.
| Method Summary | ||
|---|---|---|
|
getObject(Class<T> specification,
URI location)
Gets an object for a given location URI. |
|
| Method Detail |
|---|
<T> T getObject(Class<T> specification,
URI location)
throws NullPointerException,
IOException
T - The type of the object.specification - The specification class of the object to locate.location - The location URI of the object to locate.
location or null if no object is found at location.
NullPointerException - if specification or location is null.
IOException - if locating the object fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||