public class BaseService extends BaseInitable implements Service
Service
.Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.configuration2.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, isInitialized
SERVICE_NAME
Constructor and Description |
---|
BaseService() |
Modifier and Type | Method and Description |
---|---|
org.apache.commons.configuration2.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, shutdown
protected ServiceBroker serviceBroker
protected org.apache.commons.configuration2.Configuration configuration
public BaseService()
public void setServiceBroker(ServiceBroker broker)
setServiceBroker
in interface Service
broker
- The ServiceBroker that instantiated this object.public ServiceBroker getServiceBroker()
public Properties getProperties()
getProperties
in interface Service
public org.apache.commons.configuration2.Configuration getConfiguration()
getConfiguration
in interface Service
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.