|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.avalon.framework.logger.AbstractLoggable | +--org.apache.avalon.excalibur.container.AbstractContainer
This contains it during execution and may provide certain facilities (like a thread per EJB etc).
Fields inherited from interface org.apache.avalon.excalibur.container.Container |
ROLE |
Constructor Summary | |
AbstractContainer()
|
Method Summary | |
void |
add(java.lang.String name,
Entry entry)
Add a component instance to container. |
protected void |
checkEntry(java.lang.String name,
Entry entry)
|
Entry |
getEntry(java.lang.String name)
Retrieve Entry from container |
protected int |
getEntryCount()
|
java.lang.String[] |
list()
List all names of entries in container. |
protected java.util.Iterator |
listEntries()
List all entries in container. |
protected void |
postAdd(java.lang.String name,
Entry entry)
This method is called after entry is added to give chance for sub-class to do some cleanup. |
protected void |
postRemove(java.lang.String name,
Entry entry)
This method is called after entry is removed to give chance for sub-class to do some cleanup. |
protected void |
preAdd(java.lang.String name,
Entry entry)
This method is called before entry is added to give chance for sub-class to veto removal. |
protected void |
preRemove(java.lang.String name,
Entry entry)
This method is called before entry is removed to give chance for sub-class to veto removal. |
void |
remove(java.lang.String name)
Remove a component instance from container. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractContainer()
Method Detail |
public final void add(java.lang.String name, Entry entry) throws ContainerException
add
in interface Container
entry
- the component entrypublic final void remove(java.lang.String name) throws ContainerException
remove
in interface Container
name
- the name of componentpublic Entry getEntry(java.lang.String name) throws ContainerException
getEntry
in interface Container
name
- the name of entrypublic final java.lang.String[] list()
list
in interface Container
protected void preAdd(java.lang.String name, Entry entry) throws ContainerException
name
- the name of entryentry
- the entryContainerException
- to stop removal of entryprotected void postAdd(java.lang.String name, Entry entry)
name
- the name of entryentry
- the entryprotected void preRemove(java.lang.String name, Entry entry) throws ContainerException
name
- the name of entryentry
- the entryContainerException
- to stop removal of entryprotected void postRemove(java.lang.String name, Entry entry)
name
- the name of entryentry
- the entryprotected final java.util.Iterator listEntries()
protected final int getEntryCount()
protected void checkEntry(java.lang.String name, Entry entry) throws ContainerException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |