@Deprecated public class TurbineAvalonComponentService extends TurbineBaseService implements AvalonComponentService, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.activity.Disposable
For component which require the location of the application or context root, there are two ways to get it.
configuration, name, serviceBrokerinitableBroker, isInitializedAVALON_LOG_CATEGORY, COMPONENT_APP_ROOT, COMPONENT_CONFIG_KEY, COMPONENT_CONFIG_VALUE, COMPONENT_LOOKUP_KEY, COMPONENT_ROLE_KEY, COMPONENT_ROLE_VALUE, SERVICE_NAME| Constructor and Description |
|---|
TurbineAvalonComponentService()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Deprecated.
Disposes of the container and releases resources
|
boolean |
exists(String roleName)
Deprecated.
Is the service known to the service container?
|
Object |
get(String roleName)
Deprecated.
Returns an instance of the requested service.
|
boolean |
hasService(String roleName)
Deprecated.
|
void |
init()
Deprecated.
Load all configured components and initialize them.
|
void |
initialize()
Deprecated.
Initializes the container
|
Object |
lookup(String roleName)
Deprecated.
Returns an instance of the named component
|
void |
release(Object component)
Deprecated.
Releases the component
|
void |
shutdown()
Deprecated.
Shuts the Component Service down, calls dispose on the components that
implement this interface
|
init, initgetConfiguration, getName, getProperties, getServiceBroker, setName, setServiceBrokergetInit, getInitableBroker, setInit, setInitableBrokerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfiguration, getName, getProperties, setName, setServiceBrokergetInit, init, setInitableBrokerpublic TurbineAvalonComponentService()
public void init() throws InitializationException
init in interface Initableinit in class TurbineBaseServiceInitializationException - Something went wrong in the init
stagepublic void shutdown()
shutdown in interface Initableshutdown in class TurbineBaseServicepublic void initialize() throws Exception
initialize in interface org.apache.avalon.framework.activity.InitializableException - generic exceptionpublic void dispose()
dispose in interface org.apache.avalon.framework.activity.Disposablepublic Object lookup(String roleName) throws org.apache.avalon.framework.service.ServiceException
lookup in interface org.apache.avalon.framework.service.ServiceManagerroleName - Name of the role the component fills.org.apache.avalon.framework.service.ServiceExceptionpublic void release(Object component)
release in interface org.apache.avalon.framework.service.ServiceManagerrelease in interface TurbineServiceProvidercomponent - the component to releasepublic boolean hasService(String roleName)
hasService in interface org.apache.avalon.framework.service.ServiceManagerServiceManager.hasService(java.lang.String)public boolean exists(String roleName)
TurbineServiceProviderexists in interface TurbineServiceProviderroleName - the name of the requested serviceTurbineServiceProvider.exists(java.lang.String)public Object get(String roleName) throws InstantiationException
TurbineServiceProviderget in interface TurbineServiceProviderroleName - the name of the requested serviceInstantiationException - the service could not be instantiatedTurbineServiceProvider.get(java.lang.String)Copyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.