Return to www.inductionframework.org

com.acciente.induction.dispatcher.model
Class ConfiguredModelFactoryPool

java.lang.Object
  extended by com.acciente.induction.dispatcher.model.ConfiguredModelFactoryPool

public class ConfiguredModelFactoryPool
extends java.lang.Object

Internal. This class manages instances of the the model factory classes configured in the system.

Author:
Adinath Raveendra Raj

Constructor Summary
ConfiguredModelFactoryPool(java.lang.ClassLoader oClassLoader, javax.servlet.ServletConfig oServletConfig)
           
 
Method Summary
 java.lang.Object getConfiguredModelFactory(java.lang.String sModelFactoryClassName)
           
 boolean isConfiguredModelFactoryStale(java.lang.String sModelFactoryClassName)
          Use to check if the specified model factory classname has been refined since it was last used by this pool
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfiguredModelFactoryPool

public ConfiguredModelFactoryPool(java.lang.ClassLoader oClassLoader,
                                  javax.servlet.ServletConfig oServletConfig)
Method Detail

getConfiguredModelFactory

public java.lang.Object getConfiguredModelFactory(java.lang.String sModelFactoryClassName)
                                           throws java.lang.ClassNotFoundException,
                                                  java.lang.reflect.InvocationTargetException,
                                                  com.acciente.commons.reflect.ParameterProviderException,
                                                  ConstructorNotFoundException,
                                                  java.lang.InstantiationException,
                                                  java.lang.IllegalAccessException
Throws:
java.lang.ClassNotFoundException
java.lang.reflect.InvocationTargetException
com.acciente.commons.reflect.ParameterProviderException
ConstructorNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException

isConfiguredModelFactoryStale

public boolean isConfiguredModelFactoryStale(java.lang.String sModelFactoryClassName)
                                      throws java.lang.ClassNotFoundException
Use to check if the specified model factory classname has been refined since it was last used by this pool

Parameters:
sModelFactoryClassName - the name of model factory to check
Returns:
true if the model factory classname has been refined since it was last used by this pool
Throws:
java.lang.ClassNotFoundException - propagated exception

Return to www.inductionframework.org

Copyright © 2008-2012 Acciente, LLC. All Rights Reserved.