|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xenonsoft.bridgetown.soa.config.ServiceConfig
This is an object that stores a service configuration after parsing the bridgetown XML configuration file.
The default is that services are singletons
The default is a service are not lazy loaded.
The default is a service bean are not proxies.
See interesting article A Brief Introduction to IoC
| Constructor Summary | |
ServiceConfig()
Default constructor |
|
| Method Summary | |
void |
addInterfaceClass(java.lang.String interfaceName)
Appends a class name to the list of interface classes |
void |
addMethod(MethodConfig method)
Adds a new method configuration to this service |
void |
addProperty(PropertyConfig property)
Adds a new property configuration to this service |
MethodConfig |
getConstructor()
Gets the constructor |
java.lang.String |
getDescription()
Gets the description |
MethodConfig |
getDestroyMethod()
Gets the destroyMethod |
java.lang.String |
getId()
Gets the identifier |
java.lang.String |
getImpl()
Gets the implementation class |
java.util.List |
getInterfaceClassList()
Gets the list of interface classes |
java.lang.String[] |
getInterfaceClassListAsArray()
Convenience method to retrieve a primitive array of interface class names. |
java.util.Map |
getMethods()
Gets the methods |
java.util.List |
getMethodsList()
A convenience method that retrieves a shallow copy of the method config collection as a list collection |
ServicesConfig |
getParentServicesConfig()
Gets the parentServicesConfig |
java.util.Map |
getProperties()
Gets the properties |
java.util.List |
getPropertiesList()
A convenience method that retrieves a shallow copy of the properties config collection as a list collection |
boolean |
isCreated()
Gets the created |
boolean |
isLazyLoad()
Gets the lazyLoad property |
boolean |
isSingleton()
Gets the singleton flag, if true, then the framework context should maintain this service as a singleton. |
boolean |
isVisited()
Gets the visited |
void |
setConstructor(MethodConfig constructor)
Sets the constructor |
void |
setCreated(boolean created)
Sets the created |
void |
setDescription(java.lang.String description)
Sets the description |
void |
setDestroyMethod(MethodConfig destroyMethod)
Sets the destroyMethod |
void |
setId(java.lang.String id)
Sets the identifier |
void |
setImpl(java.lang.String impl)
Sets the implementation class |
void |
setInterfaceClass(java.lang.String interfaceName)
Creates a fresh interface list collection with the supplied interface class as the single element. |
void |
setInterfaceClassList(java.util.List interfaceClass)
Sets the list of interface classes |
void |
setLazyLoadText(java.lang.String lazyLoadText)
Sets the lazyLoad property as a text string |
void |
setMethods(java.util.Map methods)
Sets the methods |
void |
setParentServicesConfig(ServicesConfig parentServicesConfig)
Sets the parentServicesConfig |
void |
setProperties(java.util.Map properties)
Sets the properties |
void |
setSingleton(boolean singleton)
Sets the singleton property |
void |
setSingletonText(java.lang.String singletonText)
Sets the singleton property from a text string |
void |
setType(java.lang.String type)
An alias for the implementation class |
void |
setVisited(boolean visited)
Sets the visited |
java.lang.String |
toString()
Dump debuggable string for this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ServiceConfig()
| Method Detail |
public java.lang.String getId()
public void setId(java.lang.String id)
id - The id to set.public java.lang.String getImpl()
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the new value for descriptionpublic void setImpl(java.lang.String impl)
impl - The impl to set.public void setType(java.lang.String type)
public java.util.List getInterfaceClassList()
public void setInterfaceClassList(java.util.List interfaceClass)
interfaceClass - The interfaceClass list collection to set.public void addInterfaceClass(java.lang.String interfaceName)
public void setInterfaceClass(java.lang.String interfaceName)
addInterfaceClass()
interfaceName - The interface class name to append.addInterfaceClass(String)public java.lang.String[] getInterfaceClassListAsArray()
nullpublic boolean isSingleton()
public void setSingleton(boolean singleton)
singleton - The new value for singleton .public void setSingletonText(java.lang.String singletonText)
singletonText - The new value for singleton as a Textpublic boolean isLazyLoad()
public void setLazyLoadText(java.lang.String lazyLoadText)
public java.util.Map getProperties()
public void setProperties(java.util.Map properties)
properties - The properties to set.public java.util.List getPropertiesList()
public java.util.Map getMethods()
public void setMethods(java.util.Map methods)
methods - the new value for methodspublic java.util.List getMethodsList()
public void addProperty(PropertyConfig property)
public void addMethod(MethodConfig method)
public ServicesConfig getParentServicesConfig()
public void setParentServicesConfig(ServicesConfig parentServicesConfig)
parentServicesConfig - The parentServicesConfig to set.public MethodConfig getConstructor()
public void setConstructor(MethodConfig constructor)
constructor - the new value for constructorpublic MethodConfig getDestroyMethod()
public void setDestroyMethod(MethodConfig destroyMethod)
destroyMethod - the new value for destroyMethodpublic boolean isCreated()
public void setCreated(boolean created)
created - The created to set.public boolean isVisited()
public void setVisited(boolean visited)
visited - The visited to set.public java.lang.String toString()
Object.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||