com.acciente.induction.dispatcher.controller
Class ControllerPool
java.lang.Object
com.acciente.induction.dispatcher.controller.ControllerPool
public class ControllerPool
- extends java.lang.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
Constructor Summary |
ControllerPool(java.lang.ClassLoader oClassLoader,
javax.servlet.ServletConfig oServletConfig)
|
Method Summary |
Controller |
getController(java.lang.String sControllerClassName)
Returns a controller from the controller pool, instantiating if needed |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ControllerPool
public ControllerPool(java.lang.ClassLoader oClassLoader,
javax.servlet.ServletConfig oServletConfig)
getController
public Controller getController(java.lang.String sControllerClassName)
throws java.lang.ClassNotFoundException,
java.lang.reflect.InvocationTargetException,
com.acciente.commons.reflect.ParameterProviderException,
ConstructorNotFoundException,
java.lang.InstantiationException,
java.lang.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:
java.lang.ClassNotFoundException
- propagated exception
java.lang.reflect.InvocationTargetException
- propagated exception
java.lang.IllegalAccessException
- propagated exception
ConstructorNotFoundException
- propagated exception
java.lang.InstantiationException
- propagated exception
com.acciente.commons.reflect.ParameterProviderException
- propagated exception
Copyright © 2008-2009 Acciente, LLC. All Rights Reserved.