|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This component is responsible for managing the system. This includes managing the embeddor, deployer and kernel.
Field Summary | |
static String |
ROLE
|
Method Summary | |
SystemManager |
getSubContext(String name,
String type)
Returns the subcontext of the specified name. |
void |
register(String name,
Object object)
Register an object for management. |
void |
register(String name,
Object object,
Class[] interfaces)
Register an object for management. |
void |
unregister(String name)
Unregister named object. |
Field Detail |
public static final String ROLE
Method Detail |
public void register(String name, Object object, Class[] interfaces) throws ManagerException, IllegalArgumentException
name
- 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 nullpublic void register(String name, Object object) throws ManagerException, IllegalArgumentException
name
- the name to register object underobject
- the object
ManagerException
- if an error occurs such as name already registered.
IllegalArgumentException
- if object is nullpublic void unregister(String name) throws ManagerException
name
- the name of object to unregister
ManagerException
- if an error occurs such as when no such object registered.public SystemManager getSubContext(String name, String type) throws ManagerException
name
- 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |