org.nanocontainer.nanowar
Class ActionsContainerFactory

java.lang.Object
  extended by org.nanocontainer.nanowar.ActionsContainerFactory

public class ActionsContainerFactory
extends Object

Factory for the actions container used by MVC action-based frameworks. This factory looks for the PicoContainer in the webapp scopes, via the ServletContainerFinder, and uses it to inject the depedencies into the actions.

Author:
Mauro Talevi

Constructor Summary
ActionsContainerFactory()
           
 
Method Summary
 Class getActionClass(String className)
           
 org.picocontainer.MutablePicoContainer getActionsContainer(javax.servlet.http.HttpServletRequest request)
           
protected  Class loadClass(String className)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionsContainerFactory

public ActionsContainerFactory()
Method Detail

getActionsContainer

public org.picocontainer.MutablePicoContainer getActionsContainer(javax.servlet.http.HttpServletRequest request)

getActionClass

public Class getActionClass(String className)
                     throws org.picocontainer.PicoIntrospectionException
Throws:
org.picocontainer.PicoIntrospectionException

loadClass

protected Class loadClass(String className)
                   throws ClassNotFoundException
Throws:
ClassNotFoundException


Copyright © 2003-2009 Codehaus. All Rights Reserved.