Klasse ServiceContainerImpl
java.lang.Object
org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl
- Alle implementierten Schnittstellen:
org.apache.avalon.framework.activity.Disposable,org.apache.avalon.framework.activity.Initializable,org.apache.avalon.framework.configuration.Configurable,org.apache.avalon.framework.configuration.Reconfigurable,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,AvalonYaafiConstants,ServiceConstants,ServiceContainer,ServiceLifecycleManager
Yet another avalon framework implementation (YAAFI).
- Autor:
- Siegfried Goeschl
-
Feldübersicht
Von Schnittstelle geerbte Felder org.apache.fulcrum.yaafi.framework.constant.AvalonYaafiConstants
AVALON_CONTAINER_YAAFI, COMPONENT_APP_ROOT, URN_AVALON_CLASSLOADER, URN_AVALON_HOME, URN_AVALON_NAME, URN_AVALON_PARTITION, URN_AVALON_TEMPVon Schnittstelle geerbte Felder org.apache.fulcrum.yaafi.framework.container.ServiceConstants
CLAZZ_NAME, COMPONENT_CONFIG_KEY, COMPONENT_CONFIG_PROPERTIES_KEY, COMPONENT_CONFIG_VALUE, COMPONENT_CONTAINERFLAVOUR_VALUE, COMPONENT_ISENCRYPTED_KEY, COMPONENT_LOCATION_KEY, COMPONENT_PARAMETERS_KEY, COMPONENT_PARAMETERS_VALUE, COMPONENT_ROLE_KEYS, COMPONENT_ROLE_VALUE, COMPONENT_ROLECONFIGFLAVOUR_VALUE, CONTAINERCLAZZNAME_CONFIG_KEY, CONTAINERFLAVOUR_CONFIG_KEY, DISPOSAL_DELAY_KEY, DYNAMICPROXY_ENABLED_KEY, INTERCEPTOR_KEY, INTERCEPTOR_LIST_KEY, RECONFIGURATION_DELAY_KEY, ROLE_NAME, SERVICEMANAGER_KEY, SERVICEMANAGER_LIST_KEY -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidconfigure(org.apache.avalon.framework.configuration.Configuration configuration) voidcontextualize(org.apache.avalon.framework.context.Context context) voiddecommission(String name) Decommision the given service by calling Startable.stop() and Disposable.dispose().voiddispose()Disposes the service container implementation.voidenableLogging(org.apache.avalon.framework.logger.Logger logger) org.apache.avalon.framework.parameters.ParametersReturn the Avalon parameters loaded by the Avalon service containerGet a list of all RoleEntries.getRoleEntry(String name) Get a RoleEntryImpl for a given servicebooleanhasService(String name) voidLookup a service instance.voidparameterize(org.apache.avalon.framework.parameters.Parameters parameters) voidreconfigure(String[] names) Reconfigures a set of services by calling Suspendable.suspend(), Reconfigurable.reconfigure() and Suspendable.resume().voidreconfigure(org.apache.avalon.framework.configuration.Configuration configuration) Reconfiguring the services.voidvoidservice(org.apache.avalon.framework.service.ServiceManager serviceManager) toString()
-
Konstruktordetails
-
ServiceContainerImpl
public ServiceContainerImpl()Constructor using sensible defaults.
-
-
Methodendetails
-
enableLogging
public void enableLogging(org.apache.avalon.framework.logger.Logger logger) - Angegeben von:
enableLoggingin Schnittstelleorg.apache.avalon.framework.logger.LogEnabled- 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:
-
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:
-
configure
public void configure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException - Angegeben von:
configurein Schnittstelleorg.apache.avalon.framework.configuration.Configurable- Löst aus:
org.apache.avalon.framework.configuration.ConfigurationException- 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:
-
initialize
- Angegeben von:
initializein Schnittstelleorg.apache.avalon.framework.activity.Initializable- Löst aus:
Exception- Siehe auch:
-
dispose
public void dispose()Disposes the service container implementation.- Angegeben von:
disposein Schnittstelleorg.apache.avalon.framework.activity.Disposable- Siehe auch:
-
reconfigure
public void reconfigure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException Reconfiguring the services. I'm not sure how to implement this properly since the Avalon docs is vague on this subject. For now we suspend, reconfigure and resume the services in the correct order.- Angegeben von:
reconfigurein Schnittstelleorg.apache.avalon.framework.configuration.Reconfigurable- Löst aus:
org.apache.avalon.framework.configuration.ConfigurationException- Siehe auch:
-
getRoleEntry
public RoleEntry getRoleEntry(String name) throws org.apache.avalon.framework.service.ServiceException Beschreibung aus Schnittstelle kopiert:ServiceLifecycleManagerGet a RoleEntryImpl for a given service- Angegeben von:
getRoleEntryin SchnittstelleServiceLifecycleManager- Parameter:
name- the name of the service component- Gibt zurück:
- the RoleEntryImpl
- Löst aus:
org.apache.avalon.framework.service.ServiceException- the service was not found- Siehe auch:
-
getRoleEntries
Beschreibung aus Schnittstelle kopiert:ServiceLifecycleManagerGet a list of all RoleEntries.- Angegeben von:
getRoleEntriesin SchnittstelleServiceLifecycleManager- Gibt zurück:
- a list of RoleEntries
- Siehe auch:
-
reconfigure
public void reconfigure(String[] names) throws org.apache.avalon.framework.service.ServiceException, org.apache.avalon.framework.configuration.ConfigurationException Beschreibung aus Schnittstelle kopiert:ServiceLifecycleManagerReconfigures a set of services by calling Suspendable.suspend(), Reconfigurable.reconfigure() and Suspendable.resume().- Angegeben von:
reconfigurein SchnittstelleServiceLifecycleManager- Parameter:
names- the set of services to be reconfigured- Löst aus:
org.apache.avalon.framework.service.ServiceException- one of the service was not foundorg.apache.avalon.framework.configuration.ConfigurationException- the reconfiguration failed- Siehe auch:
-
hasService
- Angegeben von:
hasServicein Schnittstelleorg.apache.avalon.framework.service.ServiceManager- Siehe auch:
-
lookup
Lookup a service instance. The implementation uses the following mechanism- look for a matching local service
- use the fallback service manager as they might know the service
- ask the parent service manager
- 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
-
decommission
Beschreibung aus Schnittstelle kopiert:ServiceLifecycleManagerDecommision the given service by calling Startable.stop() and Disposable.dispose(). The state of the service component is the same as using lazy initialization. Therefore a new service instance will be created if the service is reused again. If you are keeping an instance of the service you are out of luck.- Angegeben von:
decommissionin SchnittstelleServiceLifecycleManager- Parameter:
name- the name of the service- Löst aus:
org.apache.avalon.framework.service.ServiceException- the service was not found- Siehe auch:
-
getParameters
public org.apache.avalon.framework.parameters.Parameters getParameters()Beschreibung aus Schnittstelle kopiert:ServiceContainerReturn the Avalon parameters loaded by the Avalon service container- Angegeben von:
getParametersin SchnittstelleServiceContainer- Gibt zurück:
- the Avalon parameters
- Siehe auch:
-
toString
-