| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objecttoolbox.services.ServiceConfig
class ServiceConfig
Package protected class to store the configuration of a service for the default service registry.
| Constructor Summary | |
|---|---|
ServiceConfig(java.lang.String svcHome,
              java.lang.String name,
              java.lang.String env,
              java.lang.String className,
              boolean singleton,
              boolean pojo,
              boolean relative,
              java.lang.String config,
              java.util.List deps,
              java.util.List intercptrs)
Create an new service config.  | 
|
| Method Summary | |
|---|---|
(package private)  java.lang.String | 
getClassName()
Return the name of service implementation class.  | 
(package private)  XMLProperties | 
getConfig()
Return the XML configuration for the service.  | 
(package private)  java.lang.String | 
getConfigHome()
Return the service configuration home.  | 
(package private)  java.lang.String | 
getConfigPath()
Return the location of the service configuration.  | 
(package private)  java.util.List | 
getDependencies()
Return the List of dependency definitions for the service.  | 
(package private)  java.lang.String | 
getEnvironment()
Return the name of the service environment that must be injected into the service.  | 
(package private)  java.util.List | 
getInterceptors()
Return the List of interceptor definitions for the service.  | 
(package private)  java.lang.String | 
getName()
Return the name of the service.  | 
(package private)  boolean | 
isConfigRelative()
Return the flag to indicate whether the service configuration is relative to the configuration home directory.  | 
(package private)  boolean | 
isPojo()
Return the flag to indicate whether the service is a plain java object or a Service implementation.  | 
(package private)  boolean | 
isSingleton()
Return the flag to indicate whether the service should be handled as singleton.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
ServiceConfig(java.lang.String svcHome,
              java.lang.String name,
              java.lang.String env,
              java.lang.String className,
              boolean singleton,
              boolean pojo,
              boolean relative,
              java.lang.String config,
              java.util.List deps,
              java.util.List intercptrs)
        throws ServiceException
svcHome - String containing the services home directory path.name - String containing the name of the service.env - The name of the service environment that must be 
                    injected into the service at creation time.className - The name of service implementation class.singleton - Primitive boolean to indicate whether the service
                    must be handled as a singleton.pojo - Primitive boolean indicating that the service
                    is a plain java object.relative - Primitive boolean indicating whether the service
                    configuratio is relative to the service home
                    directory.config - String containing the path to the service config.deps - List containing service dependency definitions.intercptrs - List containing service interceptor definitions.
ServiceException - if the configuration cannot be created.| Method Detail | 
|---|
java.lang.String getName()
java.lang.String getConfigHome()
java.lang.String getEnvironment()
java.lang.String getClassName()
boolean isConfigRelative()
boolean isSingleton()
boolean isPojo()
java.lang.String getConfigPath()
If the configuration is relative, the configuration home value will be pre-pended.
XMLProperties getConfig()
java.util.List getDependencies()
java.util.List getInterceptors()
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||