info.magnolia.objectfactory
Class Classes.ClassFactoryProvider

java.lang.Object
  extended by info.magnolia.objectfactory.Classes.ClassFactoryProvider
Enclosing class:
Classes

protected static class Classes.ClassFactoryProvider
extends Object

ClassFactoryProvider is used to hide the "swapability" of ClassFactory. This current implementation checks the current instance versus the configured property on every call. TODO : This could possibly be optimized or "blocked" as soon as we can now this property has indeed been configured. I don't think the above would be interesting until we can do some refactoring of the ConfigLoader, PropertiesInitializer and SystemProperty classes.


Constructor Summary
Classes.ClassFactoryProvider(ClassFactory initial)
           
 
Method Summary
 ClassFactory current()
           
protected  String getCurrentlyConfiguredClassName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Classes.ClassFactoryProvider

public Classes.ClassFactoryProvider(ClassFactory initial)
Method Detail

current

public ClassFactory current()

getCurrentlyConfiguredClassName

protected String getCurrentlyConfiguredClassName()


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.