Schnittstelle ServiceComponentLifecycle
- Alle bekannten Unterschnittstellen:
ServiceComponent
- Alle bekannten Implementierungsklassen:
AvalonServiceComponentImpl,ServiceComponentImpl
public interface ServiceComponentLifecycle
This class implements the lifecycle contract of a service component
instance.
- Autor:
- Siegfried Goeschl
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidDecommisions a service component instance.voiddispose()Dispose a service component instance.voidIncarnates a service component instance.voidloadImplemtationClass(ClassLoader classLoader) Loads the implementaion class.voidReconfigures a service component instancevoidsetConfiguration(org.apache.avalon.framework.configuration.Configuration configuration) Sets the Configuration to be used by this component.voidsetContext(org.apache.avalon.framework.context.Context context) Sets the Context to be used by this component.voidsetLogger(org.apache.avalon.framework.logger.Logger logger) Sets the logger to be used by this component.voidsetParameters(org.apache.avalon.framework.parameters.Parameters parameters) Sets the Parameters to be used by this component.voidsetServiceManager(org.apache.avalon.framework.service.ServiceManager serviceManager) Sets the ServiceManager to be used by this component.
-
Methodendetails
-
loadImplemtationClass
Loads the implementaion class.- Parameter:
classLoader- the classloader to use for loading the implementation class- Löst aus:
ClassNotFoundException- loading of the class failed
-
incarnate
Incarnates a service component instance.- Löst aus:
Exception- the operation failed
-
reconfigure
Reconfigures a service component instance- Löst aus:
Exception- the operation failed
-
decommision
Decommisions a service component instance.- Löst aus:
Exception- the operation failed
-
dispose
void dispose()Dispose a service component instance. -
getInstance
- Gibt zurück:
- Returns the instance of the singleton
- Löst aus:
Exception- the operation failed
-
setLogger
void setLogger(org.apache.avalon.framework.logger.Logger logger) Sets the logger to be used by this component.- Parameter:
logger- The logger to set
-
setServiceManager
void setServiceManager(org.apache.avalon.framework.service.ServiceManager serviceManager) Sets the ServiceManager to be used by this component.- Parameter:
serviceManager- The serviceManager to set.
-
setContext
void setContext(org.apache.avalon.framework.context.Context context) Sets the Context to be used by this component.- Parameter:
context- The context to set.
-
setConfiguration
void setConfiguration(org.apache.avalon.framework.configuration.Configuration configuration) Sets the Configuration to be used by this component.- Parameter:
configuration- The configuration to set.
-
setParameters
void setParameters(org.apache.avalon.framework.parameters.Parameters parameters) Sets the Parameters to be used by this component.- Parameter:
parameters- The paramaters to set.
-