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 TypMethodeBeschreibungvoid
contextualize
(org.apache.avalon.framework.context.Context context) void
dispose()
org.apache.avalon.framework.logger.Logger
org.apache.avalon.framework.context.Context
static ServiceManagerService
org.apache.avalon.framework.parameters.Parameters
org.apache.avalon.framework.service.ServiceManager
boolean
hasService
(String name) void
parameterize
(org.apache.avalon.framework.parameters.Parameters parameters) void
void
service
(org.apache.avalon.framework.service.ServiceManager serviceManager) protected static void
setInstance
(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:
service
in 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:
contextualize
in 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:
parameterize
in Schnittstelleorg.apache.avalon.framework.parameters.Parameterizable
- Löst aus:
org.apache.avalon.framework.parameters.ParameterException
- Siehe auch:
-
dispose
public void dispose()- Angegeben von:
dispose
in Schnittstelleorg.apache.avalon.framework.activity.Disposable
- Siehe auch:
-
hasService
- Angegeben von:
hasService
in Schnittstelleorg.apache.avalon.framework.service.ServiceManager
- Siehe auch:
-
lookup
- Angegeben von:
lookup
in Schnittstelleorg.apache.avalon.framework.service.ServiceManager
- Löst aus:
org.apache.avalon.framework.service.ServiceException
- Siehe auch:
-
release
- Angegeben von:
release
in Schnittstelleorg.apache.avalon.framework.service.ServiceManager
- Siehe auch:
-
getServiceManager
public org.apache.avalon.framework.service.ServiceManager getServiceManager()- Angegeben von:
getServiceManager
in SchnittstelleServiceManagerService
- Gibt zurück:
- the ServiceManager for the container
-
getParameters
public org.apache.avalon.framework.parameters.Parameters getParameters()- Angegeben von:
getParameters
in SchnittstelleServiceManagerService
- Gibt zurück:
- the Parameters for the container
-
getContext
public org.apache.avalon.framework.context.Context getContext()- Angegeben von:
getContext
in SchnittstelleServiceManagerService
- Gibt zurück:
- the Context for the container
-
getAvalonLogger
public org.apache.avalon.framework.logger.Logger getAvalonLogger()- Angegeben von:
getAvalonLogger
in SchnittstelleServiceManagerService
- Gibt zurück:
- the Logger of the container
- Siehe auch:
-