Klasse ServiceManagerServiceImpl
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.fulcrum.yaafi.service.servicemanager.ServiceManagerServiceImpl
- Alle implementierten Schnittstellen:
org.apache.avalon.framework.activity.Disposable,org.apache.avalon.framework.context.Contextualizable,org.apache.avalon.framework.logger.LogEnabled,org.apache.avalon.framework.parameters.Parameterizable,org.apache.avalon.framework.service.Serviceable,org.apache.avalon.framework.service.ServiceManager,ServiceManagerService
public class ServiceManagerServiceImpl
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements ServiceManagerService, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.parameters.Parameterizable, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.activity.Disposable
This is a sort of "edelhack" to solve the problem of accessing
the Avalon infrastructure without having an instance of the
container. The implementation stores the very first instance
of itself in a static variable which can be accessed using
getInstance().
This allows access to the various Avalon artifacts.
- Autor:
- Siegfried Goeschl
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidcontextualize(org.apache.avalon.framework.context.Context context) voiddispose()org.apache.avalon.framework.logger.Loggerorg.apache.avalon.framework.context.Contextstatic ServiceManagerServiceorg.apache.avalon.framework.parameters.Parametersorg.apache.avalon.framework.service.ServiceManagerbooleanhasService(String name) voidparameterize(org.apache.avalon.framework.parameters.Parameters parameters) voidvoidservice(org.apache.avalon.framework.service.ServiceManager serviceManager) protected static voidsetInstance(ServiceManagerServiceImpl instance) Create the one and only instanceVon Klasse geerbte Methoden org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Konstruktordetails
-
ServiceManagerServiceImpl
public ServiceManagerServiceImpl()Constructor
-
-
Methodendetails
-
getInstance
- Gibt zurück:
- the one and only instance of this class
-
setInstance
Create the one and only instance- Parameter:
instance- the instance
-
service
public void service(org.apache.avalon.framework.service.ServiceManager serviceManager) throws org.apache.avalon.framework.service.ServiceException - Angegeben von:
servicein Schnittstelleorg.apache.avalon.framework.service.Serviceable- Löst aus:
org.apache.avalon.framework.service.ServiceException- Siehe auch:
-
contextualize
public void contextualize(org.apache.avalon.framework.context.Context context) throws org.apache.avalon.framework.context.ContextException - Angegeben von:
contextualizein Schnittstelleorg.apache.avalon.framework.context.Contextualizable- Löst aus:
org.apache.avalon.framework.context.ContextException- Siehe auch:
-
parameterize
public void parameterize(org.apache.avalon.framework.parameters.Parameters parameters) throws org.apache.avalon.framework.parameters.ParameterException - Angegeben von:
parameterizein Schnittstelleorg.apache.avalon.framework.parameters.Parameterizable- Löst aus:
org.apache.avalon.framework.parameters.ParameterException- Siehe auch:
-
dispose
public void dispose()- Angegeben von:
disposein Schnittstelleorg.apache.avalon.framework.activity.Disposable- Siehe auch:
-
hasService
- Angegeben von:
hasServicein Schnittstelleorg.apache.avalon.framework.service.ServiceManager- Siehe auch:
-
lookup
- Angegeben von:
lookupin Schnittstelleorg.apache.avalon.framework.service.ServiceManager- Löst aus:
org.apache.avalon.framework.service.ServiceException- Siehe auch:
-
release
- Angegeben von:
releasein Schnittstelleorg.apache.avalon.framework.service.ServiceManager- Siehe auch:
-
getServiceManager
public org.apache.avalon.framework.service.ServiceManager getServiceManager()- Angegeben von:
getServiceManagerin SchnittstelleServiceManagerService- Gibt zurück:
- the ServiceManager for the container
-
getParameters
public org.apache.avalon.framework.parameters.Parameters getParameters()- Angegeben von:
getParametersin SchnittstelleServiceManagerService- Gibt zurück:
- the Parameters for the container
-
getContext
public org.apache.avalon.framework.context.Context getContext()- Angegeben von:
getContextin SchnittstelleServiceManagerService- Gibt zurück:
- the Context for the container
-
getAvalonLogger
public org.apache.avalon.framework.logger.Logger getAvalonLogger()- Angegeben von:
getAvalonLoggerin SchnittstelleServiceManagerService- Gibt zurück:
- the Logger of the container
- Siehe auch:
-