Interface ServiceComponentLifecycle
- All Known Subinterfaces:
ServiceComponent
- All Known Implementing Classes:
AvalonServiceComponentImpl
,ServiceComponentImpl
public interface ServiceComponentLifecycle
This class implements the lifecycle contract of a service component
instance.
- Author:
- Siegfried Goeschl
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Decommisions a service component instance.void
dispose()
Dispose a service component instance.void
Incarnates a service component instance.void
loadImplemtationClass
(ClassLoader classLoader) Loads the implementaion class.void
Reconfigures a service component instancevoid
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.
-
Method Details
-
loadImplemtationClass
Loads the implementaion class.- Parameters:
classLoader
- the classloader to use for loading the implementation class- Throws:
ClassNotFoundException
- loading of the class failed
-
incarnate
Incarnates a service component instance.- Throws:
Exception
- the operation failed
-
reconfigure
Reconfigures a service component instance- Throws:
Exception
- the operation failed
-
decommision
Decommisions a service component instance.- Throws:
Exception
- the operation failed
-
dispose
void dispose()Dispose a service component instance. -
getInstance
- Returns:
- Returns the instance of the singleton
- Throws:
Exception
- the operation failed
-
setLogger
void setLogger(org.apache.avalon.framework.logger.Logger logger) Sets the logger to be used by this component.- Parameters:
logger
- The logger to set
-
setServiceManager
void setServiceManager(org.apache.avalon.framework.service.ServiceManager serviceManager) Sets the ServiceManager to be used by this component.- Parameters:
serviceManager
- The serviceManager to set.
-
setContext
void setContext(org.apache.avalon.framework.context.Context context) Sets the Context to be used by this component.- Parameters:
context
- The context to set.
-
setConfiguration
void setConfiguration(org.apache.avalon.framework.configuration.Configuration configuration) Sets the Configuration to be used by this component.- Parameters:
configuration
- The configuration to set.
-
setParameters
void setParameters(org.apache.avalon.framework.parameters.Parameters parameters) Sets the Parameters to be used by this component.- Parameters:
parameters
- The paramaters to set.
-