|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IContainerManager
Container manager for getting access to existing container instances
previously created via IContainerFactory.
| Method Summary | |
|---|---|
IContainer |
addContainer(IContainer container,
ContainerTypeDescription typeDescription)
Add given container to manager. |
boolean |
addListener(IContainerManagerListener listener)
Add listener to this IContainerManager. |
IContainer[] |
getAllContainers()
Get all containers known to this container manager. |
IContainer |
getContainer(ID containerID)
Get container for given ID. |
IContainerFactory |
getContainerFactory()
Get container factory associated with this container manager. |
ContainerTypeDescription |
getContainerTypeDescription(ID containerID)
Get the container type description used to create the container with the given ID. |
boolean |
hasContainer(ID containerID)
Return true if this container manager has the given container under management, false otherwise. |
void |
removeAllContainers()
Remove all containers from this manager |
IContainer |
removeContainer(IContainer container)
Remove given container from manager. |
IContainer |
removeContainer(ID containerID)
Remove given container from manager. |
boolean |
removeListener(IContainerManagerListener listener)
Remove listener from this IContainerManager. |
| Method Detail |
|---|
IContainerFactory getContainerFactory()
null.IContainer getContainer(ID containerID)
containerID is
, null will be returned. If
active container with given containerID, is not known to this container manager,
then null will also be returned.
- Parameters:
containerID - the ID of the container instance to retrieve from this manager. If null
null will be returned.
- Returns:
- IContainer instance with given
containerID. Will be null if there
is no container with given ID known to this container manager.
ContainerTypeDescription getContainerTypeDescription(ID containerID)
containerID - the ID of the container to get the description for.
null
if no container with the given containerID exists under this manager.IContainer[] getAllContainers()
null, but may
return empty IContainer[].boolean hasContainer(ID containerID)
containerID - the ID of the container to find. If null this
method returns false.
IContainer addContainer(IContainer container,
ContainerTypeDescription typeDescription)
container - to add. Must not be null. Also
container.getID() must return a non-null
value. If container.getID() returns
null then this method will throw a
NullPointerException.typeDescription - the container type description used to create the given container. Must not be null.
IContainer removeContainer(IContainer container)
container - the container to remove. Must not be null.
null will be returned.IContainer removeContainer(ID containerID)
containerID - the ID of the container to remove. Must not be null.
null will be returned.boolean addListener(IContainerManagerListener listener)
IContainerManager.
listener - the listener to add. Must not be null.
boolean removeListener(IContainerManagerListener listener)
IContainerManager.
listener - the listener to remove. Must not be null.
void removeAllContainers()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||