com.acciente.induction.dispatcher.model
Class ConfiguredModelFactoryPool

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

public class ConfiguredModelFactoryPool
extends Object

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

Author:
Adinath Raveendra Raj

Constructor Summary
ConfiguredModelFactoryPool(ClassLoader oClassLoader, javax.servlet.ServletConfig oServletConfig)
           
 
Method Summary
 Object getConfiguredModelFactory(String sModelFactoryClassName)
           
 boolean isConfiguredModelFactoryStale(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(ClassLoader oClassLoader,
                                  javax.servlet.ServletConfig oServletConfig)
Method Detail

getConfiguredModelFactory

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

isConfiguredModelFactoryStale

public boolean isConfiguredModelFactoryStale(String sModelFactoryClassName)
                                      throws 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:
ClassNotFoundException - propagated exception


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