public interface ServiceComponentLifecycle
Modifier and Type | Method and Description |
---|---|
void |
decommision()
Decommisions a service component instance.
|
void |
dispose()
Dispose a service component instance.
|
java.lang.Object |
getInstance() |
void |
incarnate()
Incarnates a service component instance.
|
void |
loadImplemtationClass(java.lang.ClassLoader classLoader)
Loads the implementaion class.
|
void |
reconfigure()
Reconfigures a service component instance
|
void |
setConfiguration(org.apache.avalon.framework.configuration.Configuration configuration)
Sets the Configuration to be used by this component.
|
void |
setContext(org.apache.avalon.framework.context.Context context)
Sets the Context to be used by this component.
|
void |
setLogger(org.apache.avalon.framework.logger.Logger logger)
Sets the logger to be used by this component.
|
void |
setParameters(org.apache.avalon.framework.parameters.Parameters parameters)
Sets the Parameters to be used by this component.
|
void |
setServiceManager(org.apache.avalon.framework.service.ServiceManager serviceManager)
Sets the ServiceManager to be used by this component.
|
void loadImplemtationClass(java.lang.ClassLoader classLoader) throws java.lang.ClassNotFoundException
classLoader
- the classloader to use for loading the implementation classjava.lang.ClassNotFoundException
- loading of the class failedvoid incarnate() throws java.lang.Exception
java.lang.Exception
- the operation failedvoid reconfigure() throws java.lang.Exception
java.lang.Exception
- the operation failedvoid decommision() throws java.lang.Exception
java.lang.Exception
- the operation failedvoid dispose()
java.lang.Object getInstance() throws java.lang.Exception
java.lang.Exception
- the operation failedvoid setLogger(org.apache.avalon.framework.logger.Logger logger)
logger
- The logger to setvoid setServiceManager(org.apache.avalon.framework.service.ServiceManager serviceManager)
serviceManager
- The serviceManager to set.void setContext(org.apache.avalon.framework.context.Context context)
context
- The context to set.void setConfiguration(org.apache.avalon.framework.configuration.Configuration configuration)
configuration
- The configuration to set.void setParameters(org.apache.avalon.framework.parameters.Parameters parameters)
parameters
- The paramaters to set.Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.