com.acciente.induction.dispatcher.controller
Class ControllerPool
java.lang.Object
com.acciente.induction.dispatcher.controller.ControllerPool
public class ControllerPool
- extends Object
Internal.
This class manages a pool of Controller object instances. If a controller object is in the pool and it's underlying
class has not since reloaded the object in the pool is used, otherwise a new controller object is instantiated. There
is a single instance of this class per dispatcher servlet.
- Author:
- Adinath Raveendra Raj
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ControllerPool
public ControllerPool(ClassLoader oClassLoader,
javax.servlet.ServletConfig oServletConfig)
getController
public Controller getController(String sControllerClassName)
throws ClassNotFoundException,
InvocationTargetException,
com.acciente.commons.reflect.ParameterProviderException,
ConstructorNotFoundException,
InstantiationException,
IllegalAccessException
- Returns a controller from the controller pool, instantiating if needed
- Parameters:
sControllerClassName
- fully qualified controller class name
- Returns:
- an instance of a controller object
- Throws:
ClassNotFoundException
- propagated exception
InvocationTargetException
- propagated exception
IllegalAccessException
- propagated exception
ConstructorNotFoundException
- propagated exception
InstantiationException
- propagated exception
com.acciente.commons.reflect.ParameterProviderException
- propagated exception
Copyright © 2008-2013 Acciente, LLC. All Rights Reserved.