org.apache.avalon.phoenix.components.manager
Class NoopSystemManager

java.lang.Object
  |
  +--AbstractLogEnabled
        |
        +--org.apache.avalon.phoenix.components.manager.AbstractSystemManager
              |
              +--org.apache.avalon.phoenix.components.manager.NoopSystemManager
All Implemented Interfaces:
SystemManager

public class NoopSystemManager
extends AbstractSystemManager

Null SystemManager.

Author:
Eung-ju Park
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.apache.avalon.phoenix.interfaces.SystemManager
ROLE
 
Constructor Summary
NoopSystemManager()
           
 
Method Summary
 void dispose()
           
protected  Object export(String name, Object object, Class[] interfaces)
          Export the object to the particular management medium using the supplied object and interfaces.
 void start()
           
 void stop()
           
protected  void unexport(String name, Object exportedObject)
          Stop the exported object from being managed.
protected  void verifyInterface(Class clazz)
          Verify that an interface conforms to the requirements of management medium.
 
Methods inherited from class org.apache.avalon.phoenix.components.manager.AbstractSystemManager
getSubContext, initialize, register, register, unregister, verifyName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoopSystemManager

public NoopSystemManager()
Method Detail

start

public void start()

stop

public void stop()

dispose

public void dispose()

export

protected Object export(String name,
                        Object object,
                        Class[] interfaces)
                 throws ManagerException
Description copied from class: AbstractSystemManager
Export the object to the particular management medium using the supplied object and interfaces. This needs to be implemented by subclasses.

Specified by:
export in class AbstractSystemManager
Parameters:
name - the name of object
object - the object
interfaces - the interfaces
Returns:
the exported object
Throws:
ManagerException - if an error occurs

unexport

protected void unexport(String name,
                        Object exportedObject)
                 throws ManagerException
Description copied from class: AbstractSystemManager
Stop the exported object from being managed.

Specified by:
unexport in class AbstractSystemManager
Parameters:
name - the name of object
exportedObject - the object return by export
Throws:
ManagerException - if an error occurs

verifyInterface

protected void verifyInterface(Class clazz)
                        throws ManagerException
Description copied from class: AbstractSystemManager
Verify that an interface conforms to the requirements of management medium.

Specified by:
verifyInterface in class AbstractSystemManager
Parameters:
clazz - the interface class
Throws:
ManagerException - if verification fails


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.