|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--AbstractLogEnabled
|
+--org.apache.avalon.phoenix.components.manager.AbstractSystemManager
This is abstract implementation of SystemManager.
| Field Summary |
| Fields inherited from interface org.apache.avalon.phoenix.interfaces.SystemManager |
ROLE |
| Constructor Summary | |
AbstractSystemManager()
|
|
| Method Summary | |
protected abstract Object |
export(String name,
Object object,
Class[] interfaces)
Export the object to the particular management medium using the supplied object and interfaces. |
SystemManager |
getSubContext(String parent,
String type)
Returns the subcontext of the specified name. |
void |
initialize()
|
void |
register(String name,
Object object)
Register an object for management. |
void |
register(String name,
Object object,
Class[] interfaces)
Register an object for management. |
protected abstract void |
unexport(String name,
Object exportedObject)
Stop the exported object from being managed. |
void |
unregister(String name)
Unregister named object. |
protected abstract void |
verifyInterface(Class clazz)
Verify that an interface conforms to the requirements of management medium. |
protected void |
verifyName(String name,
Object object)
Verfify that name is well formed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractSystemManager()
| Method Detail |
public void initialize()
throws Exception
Exception
public void register(String name,
Object object,
Class[] interfaces)
throws ManagerException,
IllegalArgumentException
SystemManager
register in interface SystemManagername - the name to register object underobject - the objectinterfaces - the interfaces to register the component under
ManagerException - if an error occurs. An error could occur if the object doesn't
implement the interfaces, the interfaces parameter contain non-instance
classes, the name is already registered etc.
IllegalArgumentException - if object or interfaces is nullSystemManager.register(String, Object, Class[])
public void register(String name,
Object object)
throws ManagerException,
IllegalArgumentException
SystemManager
register in interface SystemManagername - the name to register object underobject - the object
ManagerException - if an error occurs such as name already registered.
IllegalArgumentException - if object is nullSystemManager.register(String, Object)
public void unregister(String name)
throws ManagerException
SystemManager
unregister in interface SystemManagername - the name of object to unregister
ManagerException - if an error occurs such as when no such object registered.SystemManager.unregister(String)
public SystemManager getSubContext(String parent,
String type)
throws ManagerException
getSubContext in interface SystemManagerparent - name of the object in the parent context that will own this onetype - of objects that will be managed in this context
ManagerException - if context cannot be created or retrieved
protected abstract Object export(String name,
Object object,
Class[] interfaces)
throws ManagerException
name - the name of objectobject - the objectinterfaces - the interfaces
ManagerException - if an error occurs
protected abstract void unexport(String name,
Object exportedObject)
throws ManagerException
name - the name of objectexportedObject - the object return by export
ManagerException - if an error occurs
protected void verifyName(String name,
Object object)
throws ManagerException
name - the nameobject - the object so named
ManagerException
protected abstract void verifyInterface(Class clazz)
throws ManagerException
clazz - the interface class
ManagerException - if verification fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||