public interface ServiceComponentLifecycle
Modifier and Type | Method and Description |
---|---|
void |
decommision()
Decommisions a service component instance.
|
void |
dispose()
Dispose a service component instance.
|
Object |
getInstance() |
void |
incarnate()
Incarnates a service component instance.
|
void |
loadImplemtationClass(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(ClassLoader classLoader) throws ClassNotFoundException
classLoader
- the classloader to use for loading the implementation classClassNotFoundException
- loading of the class failedvoid incarnate() throws Exception
Exception
- the operation failedvoid reconfigure() throws Exception
Exception
- the operation failedvoid decommision() throws Exception
Exception
- the operation failedvoid dispose()
Object getInstance() throws Exception
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 © 2004–1970 The Apache Software Foundation. All rights reserved.