|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.turbine.services.BaseInitable
org.apache.turbine.services.BaseService
This class is a generic implementation of Service
.
Field Summary | |
protected org.apache.commons.configuration.Configuration |
configuration
The configuration for this service |
protected java.lang.String |
name
The name of this Service. |
protected ServiceBroker |
serviceBroker
A reference to the ServiceBroker that instantiated this object. |
Fields inherited from class org.apache.turbine.services.BaseInitable |
initableBroker, isInitialized |
Fields inherited from interface org.apache.turbine.services.Service |
SERVICE_NAME |
Constructor Summary | |
BaseService()
|
Method Summary | |
org.apache.commons.configuration.Configuration |
getConfiguration()
Returns the configuration of this Service. |
java.lang.String |
getName()
Returns the name of this service. |
java.util.Properties |
getProperties()
Returns the properties of this Service. |
ServiceBroker |
getServiceBroker()
Returns a ServiceBroker reference. |
void |
setName(java.lang.String name)
ServiceBroker uses this method to pass a Service its name. |
void |
setServiceBroker(ServiceBroker broker)
Saves a reference to the ServiceBroker that instantiated this object, so that it can ask for its properties and access other Services. |
Methods inherited from class org.apache.turbine.services.BaseInitable |
getInit, getInitableBroker, init, init, setInit, setInitableBroker, shutdown |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.turbine.services.Initable |
getInit, init, init, setInitableBroker, shutdown |
Field Detail |
protected ServiceBroker serviceBroker
protected org.apache.commons.configuration.Configuration configuration
protected java.lang.String name
Constructor Detail |
public BaseService()
Method Detail |
public void setServiceBroker(ServiceBroker broker)
setServiceBroker
in interface Service
broker
- The ServiceBroker that instantiated this object.public void setName(java.lang.String name)
setName
in interface Service
name
- The name of this Service.public java.lang.String getName()
getName
in interface Service
public ServiceBroker getServiceBroker()
public java.util.Properties getProperties()
getProperties
in interface Service
public org.apache.commons.configuration.Configuration getConfiguration()
getConfiguration
in interface Service
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |