Return to www.inductionframework.org

com.acciente.induction.dispatcher.model
Class ModelFactory

java.lang.Object
  extended by 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


Nested Class Summary
static class ModelFactory.ModelParameterProvider
          Internal.
 
Constructor Summary
ModelFactory(java.lang.ClassLoader oClassLoader, javax.servlet.ServletConfig oServletConfig, Logger oLogger)
           
 
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelFactory

public ModelFactory(java.lang.ClassLoader oClassLoader,
                    javax.servlet.ServletConfig oServletConfig,
                    Logger oLogger)
Method Detail

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

Return to www.inductionframework.org

Copyright (c) 2008 Acciente, LLC. All rights reserved.