|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.waffle.context.pico.PicoComponentRegistry
public class PicoComponentRegistry
PicoContainer-based implementation of Waffle's ComponentRegistry
Constructor Summary | |
---|---|
PicoComponentRegistry(javax.servlet.ServletContext servletContext)
Register all waffle required components with the underlying container. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PicoComponentRegistry(javax.servlet.ServletContext servletContext)
Method Detail |
---|
protected static java.lang.Class<?> locateComponentClass(java.lang.Object key, java.lang.Class<?> defaultClass, javax.servlet.ServletContext servletContext) throws WaffleException
context-param
in the applications web.xml
.
<context-param>
<param-name>org.codehaus.waffle.actions.ControllerDefinitionFactory</param-name>
<param-value>org.myurl.FooBarControllerFactory</param-value>
</context-param>
key
- represents the component key which the implementation should be registered under.defaultClass
- represents the Class to use by default (when not over-written).servletContext
- required to obtain the InitParameter defined for the web application.
WaffleException
public <T> T locateByKey(java.lang.Object key)
locateByKey
in interface ComponentRegistry
key
- the key the component was registered under
public <T> T locateByType(java.lang.Class<T> t)
ComponentRegistry
locateByType
in interface ComponentRegistry
t
- the type of the component requested
public ActionMethodExecutor getActionMethodExecutor()
getActionMethodExecutor
in interface ComponentRegistry
public ActionMethodResponseHandler getActionMethodResponseHandler()
getActionMethodResponseHandler
in interface ComponentRegistry
public ArgumentResolver getArgumentResolver()
getArgumentResolver
in interface ComponentRegistry
public MethodDefinitionFinder getMethodDefinitionFinder()
getMethodDefinitionFinder
in interface ComponentRegistry
public MethodNameResolver getMethodNameResolver()
getMethodNameResolver
in interface ComponentRegistry
public BindErrorMessageResolver getBindErrorMessageResolver()
getBindErrorMessageResolver
in interface ComponentRegistry
public ControllerDataBinder getControllerDataBinder()
getControllerDataBinder
in interface ComponentRegistry
public ViewDataBinder getViewDataBinder()
getViewDataBinder
in interface ComponentRegistry
public StringTransmuter getStringTransmuter()
getStringTransmuter
in interface ComponentRegistry
public ValueConverterFinder getValueConverterFinder()
getValueConverterFinder
in interface ComponentRegistry
public ContextContainerFactory getContextContainerFactory()
getContextContainerFactory
in interface ComponentRegistry
public ControllerNameResolver getControllerNameResolver()
getControllerNameResolver
in interface ComponentRegistry
public ControllerDefinitionFactory getControllerDefinitionFactory()
getControllerDefinitionFactory
in interface ComponentRegistry
public MessageResources getMessageResources()
getMessageResources
in interface ComponentRegistry
public ActionMonitor getActionMonitor()
getActionMonitor
in interface ComponentRegistry
public BindMonitor getBindMonitor()
getBindMonitor
in interface ComponentRegistry
public ContextMonitor getContextMonitor()
getContextMonitor
in interface ComponentRegistry
public ControllerMonitor getControllerMonitor()
getControllerMonitor
in interface ComponentRegistry
public RegistrarMonitor getRegistrarMonitor()
getRegistrarMonitor
in interface ComponentRegistry
public ServletMonitor getServletMonitor()
getServletMonitor
in interface ComponentRegistry
public Validator getValidator()
getValidator
in interface ComponentRegistry
public ValidationMonitor getValidationMonitor()
getValidationMonitor
in interface ComponentRegistry
public ViewDispatcher getViewDispatcher()
getViewDispatcher
in interface ComponentRegistry
public ViewMonitor getViewMonitor()
getViewMonitor
in interface ComponentRegistry
public ViewResolver getViewResolver()
getViewResolver
in interface ComponentRegistry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |