|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl
public class ServiceContainerImpl
Yet another avalon framework implementation (YAAFI).
| Field Summary |
|---|
| Fields inherited from interface 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_TEMP |
| Constructor Summary | |
|---|---|
ServiceContainerImpl()
Constructor using sensible defaults. |
|
| Method Summary | |
|---|---|
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
|
void |
contextualize(org.apache.avalon.framework.context.Context context)
|
void |
decommision(String name)
Decommision the given service by calling Startable.stop() and Disposable.dispose(). |
void |
dispose()
Disposes the service container implementation. |
void |
enableLogging(org.apache.avalon.framework.logger.Logger logger)
|
org.apache.avalon.framework.parameters.Parameters |
getParameters()
Return the Avalon parameters loaded by the Avalon service container |
RoleEntry[] |
getRoleEntries()
Get a list of all RoleEntries. |
RoleEntry |
getRoleEntry(String name)
Get a RoleEntryImpl for a given service |
boolean |
hasService(String name)
|
void |
initialize()
|
Object |
lookup(String name)
Lookup a service instance. |
void |
parameterize(org.apache.avalon.framework.parameters.Parameters parameters)
|
void |
reconfigure(org.apache.avalon.framework.configuration.Configuration configuration)
Reconfiguring the services. |
void |
reconfigure(String[] names)
Reconfigures a set of services by calling Suspendable.suspend(), Reconfigurable.reconfigure() and Suspendable.resume(). |
void |
release(Object object)
|
void |
service(org.apache.avalon.framework.service.ServiceManager serviceManager)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceContainerImpl()
| Method Detail |
|---|
public void enableLogging(org.apache.avalon.framework.logger.Logger logger)
enableLogging in interface org.apache.avalon.framework.logger.LogEnabledLogEnabled.enableLogging(org.apache.avalon.framework.logger.Logger)
public void contextualize(org.apache.avalon.framework.context.Context context)
throws org.apache.avalon.framework.context.ContextException
contextualize in interface org.apache.avalon.framework.context.Contextualizableorg.apache.avalon.framework.context.ContextExceptionContextualizable.contextualize(org.apache.avalon.framework.context.Context)
public void service(org.apache.avalon.framework.service.ServiceManager serviceManager)
throws org.apache.avalon.framework.service.ServiceException
service in interface org.apache.avalon.framework.service.Serviceableorg.apache.avalon.framework.service.ServiceExceptionServiceable.service(org.apache.avalon.framework.service.ServiceManager)
public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
configure in interface org.apache.avalon.framework.configuration.Configurableorg.apache.avalon.framework.configuration.ConfigurationExceptionConfigurable.configure(org.apache.avalon.framework.configuration.Configuration)
public void parameterize(org.apache.avalon.framework.parameters.Parameters parameters)
throws org.apache.avalon.framework.parameters.ParameterException
parameterize in interface org.apache.avalon.framework.parameters.Parameterizableorg.apache.avalon.framework.parameters.ParameterExceptionParameterizable.parameterize(org.apache.avalon.framework.parameters.Parameters)
public void initialize()
throws Exception
initialize in interface org.apache.avalon.framework.activity.InitializableExceptionInitializable.initialize()public void dispose()
dispose in interface org.apache.avalon.framework.activity.DisposableDisposable.dispose()
public void reconfigure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
reconfigure in interface org.apache.avalon.framework.configuration.Reconfigurableorg.apache.avalon.framework.configuration.ConfigurationExceptionReconfigurable.reconfigure(org.apache.avalon.framework.configuration.Configuration)
public RoleEntry getRoleEntry(String name)
throws org.apache.avalon.framework.service.ServiceException
ServiceLifecycleManager
getRoleEntry in interface ServiceLifecycleManagername - the name of the service component
org.apache.avalon.framework.service.ServiceException - the service was not foundServiceLifecycleManager.getRoleEntry(java.lang.String)public RoleEntry[] getRoleEntries()
ServiceLifecycleManager
getRoleEntries in interface ServiceLifecycleManagerServiceLifecycleManager.getRoleEntries()
public void reconfigure(String[] names)
throws org.apache.avalon.framework.service.ServiceException,
org.apache.avalon.framework.configuration.ConfigurationException
ServiceLifecycleManager
reconfigure in interface ServiceLifecycleManagernames - the set of services to be reconfigured
org.apache.avalon.framework.service.ServiceException - one of the service was not found
org.apache.avalon.framework.configuration.ConfigurationException - the reconfiguration failedServiceLifecycleManager.reconfigure(java.lang.String[])public boolean hasService(String name)
hasService in interface org.apache.avalon.framework.service.ServiceManagerServiceManager.hasService(java.lang.String)
public Object lookup(String name)
throws org.apache.avalon.framework.service.ServiceException
lookup in interface org.apache.avalon.framework.service.ServiceManagerorg.apache.avalon.framework.service.ServiceExceptionServiceManager.lookup(java.lang.String)public void release(Object object)
release in interface org.apache.avalon.framework.service.ServiceManagerServiceManager.release(java.lang.Object)
public void decommision(String name)
throws org.apache.avalon.framework.service.ServiceException
ServiceLifecycleManager
decommision in interface ServiceLifecycleManagername - the name of the service
org.apache.avalon.framework.service.ServiceException - the service was not foundServiceLifecycleManager.decommision(java.lang.String)public org.apache.avalon.framework.parameters.Parameters getParameters()
ServiceContainer
getParameters in interface ServiceContainerServiceContainer.getParameters()public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||