|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wsmo.locator.LocatorManager
public class LocatorManager
The locator manager responsible to validate and manage a queue of locators.
Field Summary | |
---|---|
private java.util.LinkedList |
locList
|
Constructor Summary | |
---|---|
LocatorManager()
|
Method Summary | |
---|---|
void |
addLocator(Locator locator)
Adds new locator to the queue of locators |
static Locator |
createLocator(java.util.Map map)
Creates a locator based on the supplied preferences. |
java.util.Set |
lookup(Identifier id)
Attempts to find an entity based on its IRI. |
Entity |
lookup(Identifier id,
java.lang.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 |
Field Detail |
---|
private java.util.LinkedList locList
Constructor Detail |
---|
public LocatorManager()
Method Detail |
---|
public void addLocator(Locator locator)
locator
- The locator to addpublic java.util.Set lookup(Identifier id)
id
- The ID of the entity to find
SynchronisationException
#setNext(Locator loc)
,
Entity
public Entity lookup(Identifier id, java.lang.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(java.util.Map map)
properties
- the preferences for the locator. Such preferences
should provide all the necessary information for the locator
initialisation (e.g. provider class, type...)
#PROVIDER_CLASS
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |