Keel 2.1RC2

org.keel.services.cache.turbine
Interface Service

All Superinterfaces:
Initializable
All Known Subinterfaces:
GlobalCacheService

public interface Service
extends Initializable

Services are Initables that have a name, and a set of properties.

Version:
$Id: Service.java,v 1.1 2003/05/16 22:34:19 mprn Exp $
Author:
, , , ,

Field Summary
static java.lang.String SERVICE_NAME
          The name of this service.
 
Method Summary
 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.
 void setName(java.lang.String name)
          ServiceBroker uses this method to pass a Service its name.
 
Methods inherited from interface org.apache.avalon.framework.activity.Initializable
initialize
 

Field Detail

SERVICE_NAME

public static final java.lang.String SERVICE_NAME
The name of this service.

See Also:
Constant Field Values
Method Detail

setName

public void setName(java.lang.String name)
ServiceBroker uses this method to pass a Service its name. Service uses its name to ask the broker for an apropriate set of Properties.

Parameters:
name - The name of this Service.

getName

public java.lang.String getName()
Returns the name of this Service.

Returns:
The name of this Service.

getProperties

public java.util.Properties getProperties()
Returns the Properties of this Service. Every Service has at least one property, which is "classname", containing the name of the class implementing this service. Note that the service may chose to alter its properties, therefore they may be different from those returned by ServiceBroker.

Returns:
The properties of this Service.

getConfiguration

public Configuration getConfiguration()
Returns the Configuration of this Service. Every Service has at least one property, which is "classname", containing the name of the class implementing this service. Note that the service may chose to alter its configuration, therefore they may be different from those returned by ServiceBroker.

Returns:
The Configuration of this Service.

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.