|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.internal.spring.SpringModuleDef
public class SpringModuleDef
A wrapper that converts a Spring ApplicationContext
into a set of service definitions,
compatible with
Tapestry 5 IoC, for the beans defined in the context, as well as the context itself.
Constructor Summary | |
---|---|
SpringModuleDef(ServletContext servletContext)
|
Method Summary | |
---|---|
Class |
getBuilderClass()
Returns the class that will be instantiated. |
Set<ContributionDef> |
getContributionDefs()
Returns a contribution, "SpringBean", to the MasterObjectProvider service. |
Set<DecoratorDef> |
getDecoratorDefs()
Returns an empty set. |
String |
getLoggerName()
Returns the name used to create a Logger instance. |
ServiceDef |
getServiceDef(String serviceId)
Returns a service definition via the service's id. |
Set<String> |
getServiceIds()
Returns the ids of the services built/provided by the module. |
protected org.springframework.context.ApplicationContext |
locateApplicationContext(ServletContext servletContext)
Invoked to obtain the Spring ApplicationContext, presumably stored in the ServletContext. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpringModuleDef(ServletContext servletContext)
Method Detail |
---|
protected org.springframework.context.ApplicationContext locateApplicationContext(ServletContext servletContext)
servletContext
- used to locate the ApplicationContext
RuntimeException
- if the ApplicationContext could not be located or is otherwise invalidpublic Class getBuilderClass()
ModuleDef
getBuilderClass
in interface ModuleDef
public Set<ContributionDef> getContributionDefs()
getContributionDefs
in interface ModuleDef
public Set<DecoratorDef> getDecoratorDefs()
getDecoratorDefs
in interface ModuleDef
public String getLoggerName()
ModuleDef
Logger
instance. This is typically the builder class name.
getLoggerName
in interface ModuleDef
public ServiceDef getServiceDef(String serviceId)
ModuleDef
ServiceDef2
, and will be converted to such if necessary.
getServiceDef
in interface ModuleDef
serviceId
- the id of the service to retrieve (case is ignored)
public Set<String> getServiceIds()
ModuleDef
getServiceIds
in interface ModuleDef
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |