|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.epicentric.services.ServiceConfig
ServiceConfiguration class
Configuration information to be passed to a service when it is initialized
| Constructor Summary | |
ServiceConfig(String serviceCode,
String id,
Properties props)
Deprecated. Builds a complete ServiceConfig from a property file |
|
| Method Summary | |
Object |
clone()
Deprecated. Creates a copy of this ServiceConfig |
Service |
createService()
Deprecated. Creates a service from this ServiceConfig. |
String |
getID()
Deprecated. Retrieves the service ID (e.g, "default"). |
String |
getInitParameter(String name)
Deprecated. Retrieves the value of a given initialization parameter of the service; returns null if not found. |
String |
getInitParameter(String name,
String defaultValue)
Deprecated. Retrieves the value of a given initialization parameter of the service; returns a default value if not found. |
Enumeration |
getInitParameterNames()
Deprecated. Retrieves the names of the service's initialization parameters. |
Properties |
getInitParameters()
Deprecated. Retrieves the initialization parameters. |
String |
getServiceCode()
Deprecated. Retrieves the service code (e.g., "metastore"). |
String |
getType()
Deprecated. Retrieves the service type (the classname of the service) |
void |
importParameters(Properties parameters)
Deprecated. Imports some parameters from another properties list. |
void |
setInitParameter(String name,
String value)
Deprecated. Sets an initialization parameter. |
void |
setInitParameters(String parameters)
Deprecated. Sets initialization parameters. |
void |
setType(String type)
Deprecated. Sets the service type. |
String |
toString()
Deprecated. Creates a string representation of this ServiceConfig |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ServiceConfig(String serviceCode,
String id,
Properties props)
throws IllegalArgumentException
serviceCode - Service's serviceCode (e.g., "metastore")id - Service's ID (e.g., "default")props - Properties to load from| Method Detail |
public String getServiceCode()
public String getID()
public String getType()
public void setType(String type)
type - String value for the service typepublic String getInitParameter(String name)
name - Initialization parameter whose value is requested
public String getInitParameter(String name,
String defaultValue)
name - Initialization parameter whose value is requesteddefaultValue - String to be returned if name
not founddefaultValue if the parameter does not exist
public void setInitParameter(String name,
String value)
name - Initialization parameter's namevalue - Value of namepublic Enumeration getInitParameterNames()
public Properties getInitParameters()
public void setInitParameters(String parameters)
parameters - String containing one or more parameters.public void importParameters(Properties parameters)
parameters - Properties list to be importedpublic Object clone()
clone in class Object
public Service createService()
throws IOException,
ClassNotFoundException
public String toString()
toString in class Object
|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||