public class BaseService extends BaseInitable implements Service
Service.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.configuration.Configuration |
configuration
The configuration for this service
|
protected String |
name
The name of this Service.
|
protected ServiceBroker |
serviceBroker
A reference to the ServiceBroker that instantiated this object.
|
initableBroker, isInitializedSERVICE_NAME| Constructor and Description |
|---|
BaseService() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.commons.configuration.Configuration |
getConfiguration()
Returns the configuration of this Service.
|
String |
getName()
Returns the name of this service.
|
Properties |
getProperties()
Returns the properties of this Service.
|
ServiceBroker |
getServiceBroker()
Returns a ServiceBroker reference.
|
void |
setName(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.
|
getInit, getInitableBroker, init, init, setInit, setInitableBroker, shutdownprotected ServiceBroker serviceBroker
protected org.apache.commons.configuration.Configuration configuration
public BaseService()
public void setServiceBroker(ServiceBroker broker)
setServiceBroker in interface Servicebroker - The ServiceBroker that instantiated this object.public ServiceBroker getServiceBroker()
public Properties getProperties()
getProperties in interface Servicepublic org.apache.commons.configuration.Configuration getConfiguration()
getConfiguration in interface ServiceCopyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.