|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface that is implemented by factory classes used for the
creation of Locator
s.
Method Summary | |
Locator |
createLocator(java.lang.String notation,
java.lang.String address)
Creates a new locator. |
void |
registerImplementation(java.lang.String notation,
java.lang.Class implClass)
Registers a locator implementation. |
void |
removeImplementation(java.lang.Class implClass)
Unregisters a locator implementation. |
Method Detail |
public void registerImplementation(java.lang.String notation, java.lang.Class implClass)
createLocator(String, String)
.
notation
- the notation to be associated with the implementation.implClass
- the class that represents the actual locator
implementation. This class must implement
the Locator
interface.public void removeImplementation(java.lang.Class implClass)
createLocator(String, String)
.
implClass
- the class that represents the locator
implementation to be removed. If this class
has not yet been registered, it is silently ignored.public Locator createLocator(java.lang.String notation, java.lang.String address) throws LocatorFactoryException
registerImplementation(String, Class)
.
notation
- the notation to be associated with the new locator.address
- the address to be associated with the new locator.
LocatorFactoryException
- If no locator implementation
class associated with notation
has yet been registered, or an unexpected
condition occurred during locator
instantiation.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |