public class SpringModuleDef extends Object implements ModuleDef
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 and Description |
|---|
SpringModuleDef(ServletContext servletContext) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public SpringModuleDef(ServletContext servletContext)
protected org.springframework.context.ApplicationContext locateApplicationContext(ServletContext servletContext)
servletContext - used to locate the ApplicationContextRuntimeException - if the ApplicationContext could not be located or is otherwise invalidpublic Class getBuilderClass()
ModuleDefgetBuilderClass in interface ModuleDefpublic Set<ContributionDef> getContributionDefs()
getContributionDefs in interface ModuleDefpublic Set<DecoratorDef> getDecoratorDefs()
getDecoratorDefs in interface ModuleDefpublic String getLoggerName()
ModuleDefLogger instance. This is typically the builder class name.getLoggerName in interface ModuleDefpublic ServiceDef getServiceDef(String serviceId)
ModuleDefServiceDef2, and will be converted to such if necessary.getServiceDef in interface ModuleDefserviceId - the id of the service to retrieve (case is ignored)public Set<String> getServiceIds()
ModuleDefgetServiceIds in interface ModuleDef5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.