public interface Service extends Initable
Services
are Initables
that have a name,
and a set of properties.Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_NAME
The name of this service.
|
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.
|
void |
setName(String name)
ServiceBroker uses this method to pass a Service its name.
|
void |
setServiceBroker(ServiceBroker broker)
Provides a Service with a reference to the ServiceBroker that
instantiated this object, so that it can ask for its properties
and access other Services.
|
static final String SERVICE_NAME
void setServiceBroker(ServiceBroker broker)
broker
- The ServiceBroker that instantiated this object.void setName(String name)
name
- The name of this Service.Properties getProperties()
org.apache.commons.configuration2.Configuration getConfiguration()
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.