|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.oddjob.arooa.registry.ComponentRegistry
Register components by id and look them up by path. A ComponentRegistry is a hierarchy with child registries. The path identifies in the hierarchy where the component resides.
| Constructor Summary | |
ComponentRegistry()
Constructor for a local registry. |
|
ComponentRegistry(ServerId serverId)
Constructor for a registry that contains proxies for remote components on the give server. |
|
| Method Summary | |
void |
addChild(ComponentRegistry child,
java.lang.Object owner)
Add a child ComponentRegistry to this one. |
Address |
addressForObject(java.lang.Object object)
Get the possible addresses for a given component in this registry. |
int |
childCount()
Get the number of child registries for this registry. |
java.lang.String |
getIdForComponent(java.lang.Object component)
Find the id for the given component. |
ServerId |
getServerId()
Get the serverId. |
boolean |
isOwner(java.lang.Object component)
Is the give component a registry owner? |
java.lang.Object |
objectForAddress(Address address)
Find the object from the possible addresses that could identify it. |
java.lang.Object |
objectForPath(Path path)
Get an object for the given path. |
Path |
pathForObject(java.lang.Object component)
Get the path to a given component that may or may not be in this registries hierarchy. |
void |
register(java.lang.String id,
java.lang.Object component)
Register an object. |
ComponentRegistry |
registryOwnedBy(java.lang.Object owner)
Get the component registry owned by the component which will probably either be an Oddjob or client job. |
void |
remove(java.lang.Object component)
Remove a component from the registry if it exists. |
void |
removeChild(java.lang.Object owner)
Remove a child ComponentRegistry. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ComponentRegistry()
public ComponentRegistry(ServerId serverId)
serverId - The ServerId.| Method Detail |
public ServerId getServerId()
public void addChild(ComponentRegistry child,
java.lang.Object owner)
child - The child component registry.owner - The component in this registry which owns the
child registry.public void removeChild(java.lang.Object owner)
owner - The component in this registry which owns the
child registry.public ComponentRegistry registryOwnedBy(java.lang.Object owner)
owner - The owner component.
public boolean isOwner(java.lang.Object component)
component - The component.
public void register(java.lang.String id,
java.lang.Object component)
id - The id of the object.public java.lang.String getIdForComponent(java.lang.Object component)
component - The component.
public java.lang.Object objectForPath(Path path)
path - The path.
public java.lang.Object objectForAddress(Address address)
public Path pathForObject(java.lang.Object component)
component - The component.
public Address addressForObject(java.lang.Object object)
object - The component.
public void remove(java.lang.Object component)
component - The compnent.public int childCount()
public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||