|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xenonsoft.bridgetown.soa.impl.AbstractServiceAssembler
com.xenonsoft.bridgetown.soa.impl.AOPAbstractServiceAssembler
com.xenonsoft.bridgetown.soa.impl.AOPServiceAssemblerImpl
com.xenonsoft.bridgetown.app.WebApplicationAssembler
This application assembler is a service assembly specifically designed for a web application. It loads a series of configurations from the servlet context resources and create an assembly. Each configuration is merged with the previous.
Definitions in the first configuration are overriden by the later ones, if specified.
In order to use this class, the resource URI must be retrieved
first. Assembly configuration are normally set as file resource
relative the wep application context. Typically these resource URI
are defined in a servlet or a context listener.
The WebApplicationAssemblerContextListener is convenience
class that allows these configurations to be loaded. It also
set creates a WebApplicationAssembler object
and stores it into the application scope.
WebApplicationAssemblerContextListener,
setAssembler(ServletContext, WebApplicationAssembler),
getAssembler(ServletContext),
Serialized Form| Field Summary | |
static java.lang.String |
STORAGE_ATTRIBUTE
The attribute name that the web application assembler is saved and retrieved under. |
| Fields inherited from class com.xenonsoft.bridgetown.soa.impl.AbstractServiceAssembler |
assembly, beanPropertyValueResolver, classLoader, instanceCache, proxyBeanBuilder |
| Constructor Summary | |
WebApplicationAssembler()
Default constructor |
|
WebApplicationAssembler(javax.servlet.ServletContext newContext)
Standard constructor |
|
| Method Summary | |
static WebApplicationAssembler |
getAssembler(javax.servlet.ServletContext servletContext)
Retrieve the web application assembler from the servlet context (JSP application scope) |
javax.servlet.ServletContext |
getServletContext()
Gets the servletContext |
void |
load(IConfigLoader[] configLoaderList)
Loads the array configurations into the assembler factory, replacing the current configuration if it exists. |
void |
load(java.lang.String[] contextUrls)
A convenience method that loads assembly configuration from an array of servlet context relative URIs. |
protected static void |
setAssembler(javax.servlet.ServletContext servletContext,
WebApplicationAssembler assembler)
Saves the supplied web application assembler into the servlet context (JSP application scope) |
void |
setServletContext(javax.servlet.ServletContext servletContext)
Sets the servletContext |
| Methods inherited from class com.xenonsoft.bridgetown.soa.impl.AOPServiceAssemblerImpl |
getName, getName, getService |
| Methods inherited from class com.xenonsoft.bridgetown.soa.impl.AOPAbstractServiceAssembler |
configureParameterBeanReferences, createBeanBuilder, getAopWeaver, setAopWeaver, start, weavePointcut |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.xenonsoft.bridgetown.soa.IServiceAssembler |
getAssemblyConfig, getBeanPropertyValueResolver, getClassLoader, load, merge, setBeanPropertyValueResolver, setClassLoader |
| 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 |
| Field Detail |
public static final java.lang.String STORAGE_ATTRIBUTE
| Constructor Detail |
public WebApplicationAssembler()
public WebApplicationAssembler(javax.servlet.ServletContext newContext)
newContext - the servlet context reference to save| Method Detail |
public javax.servlet.ServletContext getServletContext()
public void setServletContext(javax.servlet.ServletContext servletContext)
servletContext - the new value for servletContextpublic void load(IConfigLoader[] configLoaderList)
This method merges the configurations into one or another, with the definitions in the last configuration overriding any previously set definitions.
load in interface IApplicationAssemblerconfigLoaderList - the array of configuration loaders
AssemblyConfigException - if the factory cannot read the assembly configuration
AssemblyFactoryException - if the factory cannot create the service assemblycom.xenonsoft.bridgetown.soa.IApplicationAssembler#load(com.xenonsoft.bridgetown.soa.config.IConfigLoader[]),
IServiceAssembler.merge(IConfigLoader, boolean)public void load(java.lang.String[] contextUrls)
load(IConfigLoader[])
protected static void setAssembler(javax.servlet.ServletContext servletContext,
WebApplicationAssembler assembler)
servletContext - the servlet contextassembler - the application assemblerpublic static WebApplicationAssembler getAssembler(javax.servlet.ServletContext servletContext)
servletContext - the servlet context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||