com.acciente.induction.dispatcher.model
Class ModelFactory
java.lang.Object
com.acciente.induction.dispatcher.model.ModelFactory
public class ModelFactory
- extends java.lang.Object
Internal.
This class is the factory used to instantiate new Model object instances
- Author:
- Adinath Raveendra Raj
Method Summary |
java.lang.Object |
createModel(Config.ModelDefs.ModelDef oModelDef,
javax.servlet.http.HttpServletRequest oHttpServletRequest)
|
boolean |
isModelStale(Config.ModelDefs.ModelDef oModelDef,
java.lang.Object oModel)
|
void |
setModelPool(ModelPool oModelPool)
Used to set a model pool for use in model-to-model dendency injection (note the cyclic relationship
between ModelFactory class and the ModelPool class, also a the same relationship between the object
instances) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModelFactory
public ModelFactory(java.lang.ClassLoader oClassLoader,
javax.servlet.ServletConfig oServletConfig,
TemplatingEngine oTemplatingEngine,
Config.FileUpload oFileUploadConfig)
setModelPool
public void setModelPool(ModelPool oModelPool)
- Used to set a model pool for use in model-to-model dendency injection (note the cyclic relationship
between ModelFactory class and the ModelPool class, also a the same relationship between the object
instances)
- Parameters:
oModelPool
- a model pool instance
createModel
public java.lang.Object createModel(Config.ModelDefs.ModelDef oModelDef,
javax.servlet.http.HttpServletRequest oHttpServletRequest)
throws java.lang.reflect.InvocationTargetException,
ConstructorNotFoundException,
com.acciente.commons.reflect.ParameterProviderException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
MethodNotFoundException,
java.lang.ClassNotFoundException
- Throws:
java.lang.reflect.InvocationTargetException
ConstructorNotFoundException
com.acciente.commons.reflect.ParameterProviderException
java.lang.IllegalAccessException
java.lang.InstantiationException
MethodNotFoundException
java.lang.ClassNotFoundException
isModelStale
public boolean isModelStale(Config.ModelDefs.ModelDef oModelDef,
java.lang.Object oModel)
throws java.lang.ClassNotFoundException,
ConstructorNotFoundException,
java.lang.reflect.InvocationTargetException,
java.lang.IllegalAccessException,
java.lang.InstantiationException
- Throws:
java.lang.ClassNotFoundException
ConstructorNotFoundException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
java.lang.InstantiationException
Copyright © 2008-2009 Acciente, LLC. All Rights Reserved.