|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cafesoft.core.service.StandardServiceConfig
public class StandardServiceConfig
StandardServiceConfig provides the standard implementation of
ServiceConfig, which provides a Service with configuration
parameters and it's execution context.
| Constructor Summary | |
|---|---|
StandardServiceConfig(String id,
Properties prop,
ServiceContext context)
Create a new StandardServiceConfig. |
|
| Method Summary | |
|---|---|
String |
getId()
Get the Service identifier. |
String |
getInitParameter(String name)
Returns a String containing the value of the named initialization parameter. |
String |
getInitParameter(String name,
String defaultValue)
Returns a String containing the value of the named initialization parameter or the default value. |
Iterator |
getInitParameterNames()
Returns the names of the Security Domains's initialization parameters as an Iterator of String objects, or an empty Iterator if the Security Domain has no initialization parameters. |
ServiceContext |
getServiceContext()
Returns a reference to the ServiceContext in which the Service is executing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StandardServiceConfig(String id,
Properties prop,
ServiceContext context)
id - the Service identifier, which must be unique within the
ServiceManager managing the associated Service.prop - a Properties object containg the Service initialization
parameters accessible via getInitParameter(name).context - the ServiceContext implementation.| Method Detail |
|---|
public String getId()
getId in interface ServiceConfigpublic ServiceContext getServiceContext()
getServiceContext in interface ServiceConfigServiceContextpublic String getInitParameter(String name)
getInitParameter in interface ServiceConfigname - a String specifying the name of the initialization
parameter.
public String getInitParameter(String name,
String defaultValue)
getInitParameter in interface ServiceConfigname - a String specifying the name of the initialization
parameterdefaultValue - the default value to be returned if the
initialization parameter does not exist or it's value is null
public Iterator getInitParameterNames()
getInitParameterNames in interface ServiceConfig
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||