ServiceManager. Allow ineritance
and extension so you can generate a tree of ServiceManager each defining
Object scope.
| Modifier and Type | Field and Description |
|---|---|
| private final HashMap | |
| private final ServiceManager | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | DefaultServiceManager(final ServiceManager
this parent)ServiceManager's parentConstruct |
| Modifier and Type | Method and Description |
|---|---|
| protected final void | |
| protected final Map | |
| protected final ServiceManager | |
| public boolean | Returns: True if the object exists, False if it does not.a string identifying the key to check. key)Implements org. Object exists for a key.
|
| public Object | Returns: theObjectthe key key)Implements org. Object by key from ServiceManager.
|
| public void | |
| public void | |
| public void | release(Object
The object)Object to release.Implements org. Object.
|
| public String | Returns: the description of thisServiceManagerOverrides java. ServiceManager.
|
| m_objects | back to summary |
|---|---|
| private final HashMap<K, V> m_objects | |
| m_parent | back to summary |
|---|---|
| private final ServiceManager m_parent | |
| m_readOnly | back to summary |
|---|---|
| private boolean m_readOnly | |
| DefaultServiceManager | back to summary |
|---|---|
| public DefaultServiceManager() Construct | |
| DefaultServiceManager | back to summary |
|---|---|
| public DefaultServiceManager(final ServiceManager parent) Construct
| |
| checkWriteable | back to summary |
|---|---|
| protected final void checkWriteable() throws IllegalStateException Checks if this
| |
| getObjectMap | back to summary |
|---|---|
| protected final Map Helper method for subclasses to retrieve object map.
| |
| getParent | back to summary |
|---|---|
| protected final ServiceManager getParent() Helper method for subclasses to retrieve parent.
| |
| hasService | back to summary |
|---|---|
| public boolean hasService(final String key) Implements org. Check to see if a
| |
| lookup | back to summary |
|---|---|
| public Object lookup(final String key) throws ServiceException Implements org. Retrieve
| |
| makeReadOnly | back to summary |
|---|---|
| public void makeReadOnly() Makes this | |
| put | back to summary |
|---|---|
| public void put(final String key, final Object object) Place | |
| release | back to summary |
|---|---|
| public void release(Object object) Implements org. Release the
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Build a human readable representation of this
| |