net.sourceforge.stripes.integration.spring
Class SpringAwareActionResolver

java.lang.Object
  extended by net.sourceforge.stripes.controller.AnnotatedClassActionResolver
      extended by net.sourceforge.stripes.controller.NameBasedActionResolver
          extended by net.sourceforge.stripes.integration.spring.SpringAwareActionResolver
All Implemented Interfaces:
ConfigurableComponent, ActionResolver

Deprecated. Use SpringInterceptor instead.

@Deprecated
public class SpringAwareActionResolver
extends NameBasedActionResolver

An extension of NameBasedActionResolver that uses a Spring context to inject Spring beans into newly created ActionBeans before handing them back for processing.

This can be configured through web.xml by adding the following init parameters to the Stripes filter:

 <init-param>
     <param-name>ActionResolver.Class</param-name>
     <param-value>net.sourceforge.stripes.integration.spring.SpringAwareActionResolver</param-value>
 </init-param>
 

Author:
Tim Fennell
See Also:
SpringBean

Field Summary
 
Fields inherited from class net.sourceforge.stripes.controller.NameBasedActionResolver
BASE_PACKAGES, DEFAULT_BINDING_SUFFIX
 
Fields inherited from interface net.sourceforge.stripes.controller.ActionResolver
RESOLVED_ACTION
 
Constructor Summary
SpringAwareActionResolver()
          Deprecated.  
 
Method Summary
protected  ActionBean makeNewActionBean(Class<? extends ActionBean> type, ActionBeanContext context)
          Deprecated. Overridden method to inject Spring beans into ActionBeans after instantiation.
 
Methods inherited from class net.sourceforge.stripes.controller.NameBasedActionResolver
findView, getActionBean, getBasePackages, getBindingSuffix, getHandledEvent, getUrlBinding, getUrlBinding, handleActionBeanNotFound, init
 
Methods inherited from class net.sourceforge.stripes.controller.AnnotatedClassActionResolver
addActionBean, findClasses, getActionBean, getActionBeanType, getConfiguration, getDefaultHandler, getEventName, getEventNameFromEventNameParam, getEventNameFromPath, getEventNameFromRequestParams, getHandler, getPackageFilters, getRequestedPath, getUrlBindingFromPath, getUrlFilters, processMethods
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringAwareActionResolver

public SpringAwareActionResolver()
Deprecated. 
Method Detail

makeNewActionBean

protected ActionBean makeNewActionBean(Class<? extends ActionBean> type,
                                       ActionBeanContext context)
                                throws Exception
Deprecated. 
Overridden method to inject Spring beans into ActionBeans after instantiation.

Overrides:
makeNewActionBean in class AnnotatedClassActionResolver
Parameters:
type - the Class of ActionBean being created
context - the current ActionBeanContext
Returns:
the newly instantiated ActionBean
Throws:
Exception - if configured SpringBeans cannot be located, or are ambiguous


© Copyright 2005-2006, Stripes Development Team.