|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.wsmo.locator.LocatorManager
public final class LocatorManager
The locator manager responsible to validate and manage a queue of locators.
Constructor Summary | |
---|---|
LocatorManager()
|
Method Summary | |
---|---|
void |
addLocator(Locator locator)
Adds new locator to the queue of locators |
static Locator |
createLocator(Map<String,Object> map)
Creates a locator based on the supplied preferences. |
Set |
lookup(Identifier id)
Attempts to find an entity based on its IRI. |
Entity |
lookup(Identifier id,
Class clazz)
Attempts to find an entity based on its IRI. |
void |
removeLocator(Locator locator)
Removes a locator from the queue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocatorManager()
Method Detail |
---|
public void addLocator(Locator locator)
locator
- The locator to addpublic Set lookup(Identifier id)
id
- The ID of the entity to find
SynchronisationException
#setNext(Locator loc)
,
Entity
public Entity lookup(Identifier id, Class clazz)
id
- The ID of the entity to findclazz
- The type of the identifier
SynchronisationException
#setNext(Locator loc)
public void removeLocator(Locator locator)
locator
- The locator to removepublic static Locator createLocator(Map<String,Object> map)
properties
- the preferences for the locator. Such preferences
should provide all the necessary information for the locator
initialisation (e.g. provider class, type...)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |