|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.acciente.induction.dispatcher.model.ModelFactory
public class ModelFactory
Internal. This class is the factory used to instantiate new Model object instances
| Constructor Summary | |
|---|---|
ModelFactory(ClassLoader oClassLoader,
javax.servlet.ServletConfig oServletConfig,
Config.FileUpload oFileUploadConfig)
|
|
| Method Summary | |
|---|---|
Object |
createModel(Config.ModelDefs.ModelDef oModelDef,
javax.servlet.http.HttpServletRequest oHttpServletRequest)
|
Object |
createSystemModel(Class oSystemModelClass,
javax.servlet.http.HttpServletRequest oHttpServletRequest)
|
boolean |
isModelStale(Config.ModelDefs.ModelDef oModelDef,
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 the same relationship between the object instances) |
void |
setRedirectResolver(RedirectResolverExecutor oRedirectResolverExecutor)
This method exists to set the redirect resolver after construction of the model factory since there is a cyclic dependency between the redirect resolver and the model factory |
void |
setTemplatingEngine(TemplatingEngine oTemplatingEngine)
This method exists to set the templating engine after construction of the model factory since there is a cyclic dependency between the templating engine and the model factory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModelFactory(ClassLoader oClassLoader,
javax.servlet.ServletConfig oServletConfig,
Config.FileUpload oFileUploadConfig)
| Method Detail |
|---|
public void setModelPool(ModelPool oModelPool)
oModelPool - a model pool instancepublic void setRedirectResolver(RedirectResolverExecutor oRedirectResolverExecutor)
oRedirectResolverExecutor - the redirect resolverpublic void setTemplatingEngine(TemplatingEngine oTemplatingEngine)
oTemplatingEngine - the redirect resolver
public Object createModel(Config.ModelDefs.ModelDef oModelDef,
javax.servlet.http.HttpServletRequest oHttpServletRequest)
throws InvocationTargetException,
ConstructorNotFoundException,
com.acciente.commons.reflect.ParameterProviderException,
IllegalAccessException,
InstantiationException,
MethodNotFoundException,
ClassNotFoundException
InvocationTargetException
ConstructorNotFoundException
com.acciente.commons.reflect.ParameterProviderException
IllegalAccessException
InstantiationException
MethodNotFoundException
ClassNotFoundException
public boolean isModelStale(Config.ModelDefs.ModelDef oModelDef,
Object oModel)
throws ClassNotFoundException,
ConstructorNotFoundException,
InvocationTargetException,
IllegalAccessException,
InstantiationException
ClassNotFoundException
ConstructorNotFoundException
InvocationTargetException
IllegalAccessException
InstantiationException
public Object createSystemModel(Class oSystemModelClass,
javax.servlet.http.HttpServletRequest oHttpServletRequest)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||