info.magnolia.cms.util
Class FactoryUtil

java.lang.Object
  extended by info.magnolia.cms.util.FactoryUtil

Deprecated. since 4.3 - use Components.getComponentProvider().

public class FactoryUtil
extends Object

Deprecated.

Version:
$Revision$ ($Author$)
Author:
Philipp Bracher

Nested Class Summary
static interface FactoryUtil.InstanceFactory
          Deprecated. since 4.3 - use ComponentFactory
static class FactoryUtil.ObservedObjectFactory
          Deprecated. since 4.3 - use ObservedComponentFactory
 
Method Summary
static void clear()
          Deprecated. since 4.3 - For tests, use info.magnolia.test.ComponentsTestUtil, otherwise see DefaultComponentProvider.clear()
static Class getImplementation(Class interf)
          Deprecated. since 4.3 - use info.magnolia.objectfactory.Components#getComponentProvider()#getImplementation(Class)
static Object getSingleton(Class interf)
          Deprecated. since 4.3 - use Components.getSingleton(Class)
static Object newInstance(Class interf)
          Deprecated. since 4.3 - use info.magnolia.objectfactory.Components#getComponentProvider()#newInstance(Class)
static Object newInstanceWithoutDiscovery(String className)
          Deprecated. since 4.3 - use Classes.getClassFactory()
static Object newInstanceWithoutDiscovery(String className, Object[] args)
          Deprecated. since 4.3 - use Classes
static void setDefaultImplementation(Class interf, Class impl)
          Deprecated. since 4.3 - For tests, use info.magnolia.test.ComponentsTestUtil, otherwise see info.magnolia.objectfactory.DefaultComponentProvider#setDefaultImplementation(Class, Class)
static void setDefaultImplementation(Class interf, String impl)
          Deprecated. since 4.3 - For tests, use info.magnolia.test.ComponentsTestUtil, otherwise see info.magnolia.objectfactory.DefaultComponentProvider#setDefaultImplementation(Class, String)
static void setImplementation(Class interf, Class impl)
          Deprecated. since 4.3 - For tests, use info.magnolia.test.ComponentsTestUtil, otherwise see info.magnolia.objectfactory.DefaultComponentProvider#setImplementation(Class, Class)
static void setImplementation(Class interf, String impl)
          Deprecated. since 4.3 - For tests, use info.magnolia.test.ComponentsTestUtil, otherwise see DefaultComponentProvider.setImplementation(Class, String)
static void setInstance(Class interf, Object instance)
          Deprecated. since 4.3 - For tests, use info.magnolia.test.ComponentsTestUtil, otherwise see DefaultComponentProvider.setInstance(Class, Object)
static void setInstanceFactory(Class interf, FactoryUtil.InstanceFactory factory)
          Deprecated. since 4.3 - For tests, use info.magnolia.test.ComponentsTestUtil, otherwise see DefaultComponentProvider.setInstanceFactory(Class, info.magnolia.objectfactory.ComponentFactory)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInstance

public static Object newInstance(Class interf)
Deprecated. since 4.3 - use info.magnolia.objectfactory.Components#getComponentProvider()#newInstance(Class)


getImplementation

public static Class getImplementation(Class interf)
                               throws ClassNotFoundException
Deprecated. since 4.3 - use info.magnolia.objectfactory.Components#getComponentProvider()#getImplementation(Class)

Throws:
ClassNotFoundException

newInstanceWithoutDiscovery

public static Object newInstanceWithoutDiscovery(String className,
                                                 Object[] args)
Deprecated. since 4.3 - use Classes


newInstanceWithoutDiscovery

public static Object newInstanceWithoutDiscovery(String className)
Deprecated. since 4.3 - use Classes.getClassFactory()


getSingleton

public static Object getSingleton(Class interf)
Deprecated. since 4.3 - use Components.getSingleton(Class)


setDefaultImplementation

public static void setDefaultImplementation(Class interf,
                                            Class impl)
Deprecated. since 4.3 - For tests, use info.magnolia.test.ComponentsTestUtil, otherwise see info.magnolia.objectfactory.DefaultComponentProvider#setDefaultImplementation(Class, Class)


setDefaultImplementation

public static void setDefaultImplementation(Class interf,
                                            String impl)
Deprecated. since 4.3 - For tests, use info.magnolia.test.ComponentsTestUtil, otherwise see info.magnolia.objectfactory.DefaultComponentProvider#setDefaultImplementation(Class, String)


setImplementation

public static void setImplementation(Class interf,
                                     Class impl)
Deprecated. since 4.3 - For tests, use info.magnolia.test.ComponentsTestUtil, otherwise see info.magnolia.objectfactory.DefaultComponentProvider#setImplementation(Class, Class)


setImplementation

public static void setImplementation(Class interf,
                                     String impl)
Deprecated. since 4.3 - For tests, use info.magnolia.test.ComponentsTestUtil, otherwise see DefaultComponentProvider.setImplementation(Class, String)


setInstance

public static void setInstance(Class interf,
                               Object instance)
Deprecated. since 4.3 - For tests, use info.magnolia.test.ComponentsTestUtil, otherwise see DefaultComponentProvider.setInstance(Class, Object)


setInstanceFactory

public static void setInstanceFactory(Class interf,
                                      FactoryUtil.InstanceFactory factory)
Deprecated. since 4.3 - For tests, use info.magnolia.test.ComponentsTestUtil, otherwise see DefaultComponentProvider.setInstanceFactory(Class, info.magnolia.objectfactory.ComponentFactory)


clear

public static void clear()
Deprecated. since 4.3 - For tests, use info.magnolia.test.ComponentsTestUtil, otherwise see DefaultComponentProvider.clear()



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