|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This is an interface contract for a Service assembler object.
This type of object stands as a classic IoC assembler.
User is can provide more control over the service object factory,
by defining a class loader instance. It is able to load the
configuration from an external resource with the help of a
IConfigLoader object.
The configuration are also mergeable with this class.
The user is also able to override and set a bean property resolver
object IBeanPropertyValueResolver
to interpret tokenised property settings.
Please also read
| Method Summary | |
AssemblyConfig |
getAssemblyConfig()
Retrieve the root assembly configuration |
IBeanPropertyValueResolver |
getBeanPropertyValueResolver()
Gets the beanPropertyValueResolver for this assembly factory |
java.lang.ClassLoader |
getClassLoader()
Gets the current class loader for the assembly factory. |
void |
load(IConfigLoader configLoader)
Load the configuration for this service assembly |
void |
merge(IConfigLoader configLoader,
boolean override)
Merge the supplied reference service assembly into the current existing configuration. |
void |
setBeanPropertyValueResolver(IBeanPropertyValueResolver beanPropertyValueResolver)
Sets the beanPropertyValueResolver for this assembly factory |
void |
setClassLoader(java.lang.ClassLoader classLoader)
Sets the class loader for the assembly factory. |
| Methods inherited from interface com.xenonsoft.bridgetown.soa.IServiceObjectFactory |
containsContext, containsService, getContextNameList, getName, getName, getService, getServiceNameList |
| Methods inherited from interface com.xenonsoft.bridgetown.soa.IStartable |
start |
| Methods inherited from interface com.xenonsoft.bridgetown.soa.IDisposable |
dispose |
| Method Detail |
public void setClassLoader(java.lang.ClassLoader classLoader)
classLoader - the class loaderpublic java.lang.ClassLoader getClassLoader()
setClassLoader(ClassLoader)public void load(IConfigLoader configLoader)
configLoader - the configuration loader
AssemblyConfigException - if the factory cannot read the assembly configuration
AssemblyFactoryException - if the factory cannot create the service assemblymerge(IConfigLoader, boolean)
public void merge(IConfigLoader configLoader,
boolean override)
Here are the suggested cases for a merge algorithm. Of course implementer are free to invent a new style of merging algorithm as long as it is very well documented, and perhaps if it is so radical then provide a separate Java interface as well as unit tests
load( IConfigLoader )
configLoader - the configuration loaderoverride - true if the configuration context should
override the existing configuration
AssemblyConfigException - if the factory cannot read the assembly configuration
AssemblyFactoryException - if the factory cannot create the service assemblyload(IConfigLoader)public AssemblyConfig getAssemblyConfig()
public IBeanPropertyValueResolver getBeanPropertyValueResolver()
public void setBeanPropertyValueResolver(IBeanPropertyValueResolver beanPropertyValueResolver)
beanPropertyValueResolver - The beanPropertyValueResolver to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||