|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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(javax.servlet.ServletContext servletContext)
|
|
| Method Summary | |
|---|---|
java.lang.Class |
getBuilderClass()
|
java.util.Set<ContributionDef> |
getContributionDefs()
Returns a contribution, "SpringBean", to the MasterObjectProvider service. |
java.util.Set<DecoratorDef> |
getDecoratorDefs()
Returns an empty set. |
java.lang.String |
getLoggerName()
|
ServiceDef |
getServiceDef(java.lang.String serviceId)
|
java.util.Set<java.lang.String> |
getServiceIds()
|
protected org.springframework.context.ApplicationContext |
locateApplicationContext(javax.servlet.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(javax.servlet.ServletContext servletContext)
| Method Detail |
|---|
protected org.springframework.context.ApplicationContext locateApplicationContext(javax.servlet.ServletContext servletContext)
servletContext - used to locate the ApplicationContext
java.lang.RuntimeException - if the ApplicationContext could not be located or is otherwise invalidpublic java.lang.Class getBuilderClass()
getBuilderClass in interface ModuleDefpublic java.util.Set<ContributionDef> getContributionDefs()
getContributionDefs in interface ModuleDefpublic java.util.Set<DecoratorDef> getDecoratorDefs()
getDecoratorDefs in interface ModuleDefpublic java.lang.String getLoggerName()
getLoggerName in interface ModuleDefpublic ServiceDef getServiceDef(java.lang.String serviceId)
getServiceDef in interface ModuleDefpublic java.util.Set<java.lang.String> getServiceIds()
getServiceIds in interface ModuleDef
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||