|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectelectric.registry.compound.CompoundRegistry
CompoundRegistry aggregates a collection of IRegistry objects.
| Constructor Summary | |
CompoundRegistry()
|
|
| Method Summary | |
IRegistryListener |
addListener(java.lang.String name,
IRegistryListener listener)
Add the specified listener to the collection of listeners. |
void |
addRegistry(java.lang.String name,
IRegistry registry)
Add the specified registry to the collection of registries with the default priority of 5. |
void |
addRegistry(java.lang.String name,
IRegistry registry,
float priority)
Add the specified registry to the collection of registries. |
IReference |
bind(java.lang.String path,
java.lang.Class[] interfaces,
Context context)
Return a reference to the service described by the path, interfaces, and context. |
IRegistryListener |
getListener(java.lang.String name)
Return the specified listener from the collection of listeners, or null if not found. |
IRegistry |
getRegistry(java.lang.String name)
Return the specified registry from the collection of registries, or null if not found. |
boolean |
publish(java.lang.String path,
java.lang.Object object,
Context context)
Publish the object to the specified path. |
IRegistryListener |
removeListener(java.lang.String name)
Remove and return the specified listener from the collection of listeners, or do nothing if not found. |
IRegistry |
removeRegistry(java.lang.String name)
Remove and return the specified registry from the collection of registries, or do nothing if not found. |
boolean |
unpublish(java.lang.String path)
Unpublish the object from the specified path. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CompoundRegistry()
| Method Detail |
public void addRegistry(java.lang.String name,
IRegistry registry)
name - The name of the registry.registry - The registry to add.
public void addRegistry(java.lang.String name,
IRegistry registry,
float priority)
name - The name of the registry.registry - The registry to add.priority - The priority, 1=highest, tried firstpublic IRegistry getRegistry(java.lang.String name)
name - The name of the registry.public IRegistry removeRegistry(java.lang.String name)
name - The name of the registry.
public IRegistryListener addListener(java.lang.String name,
IRegistryListener listener)
name - The name of the listener.listener - The listener to add.public IRegistryListener getListener(java.lang.String name)
name - The name of the listener.public IRegistryListener removeListener(java.lang.String name)
name - The name of the listener.
public IReference bind(java.lang.String path,
java.lang.Class[] interfaces,
Context context)
throws RegistryException
bind in interface IRegistrypath - The path.interfaces - The interfacescontext - The context.
RegistryException
public boolean publish(java.lang.String path,
java.lang.Object object,
Context context)
throws RegistryException
publish in interface IRegistrypath - The path.object - The object.context - The context.
RegistryException
public boolean unpublish(java.lang.String path)
throws RegistryException
unpublish in interface IRegistrypath - The path.
RegistryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||