|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.util.FactoryUtil
Components.getComponentProvider()
.
public class FactoryUtil
Deprecated.
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 |
---|
public static Object newInstance(Class interf)
info.magnolia.objectfactory.Components#getComponentProvider()#newInstance(Class)
public static Class getImplementation(Class interf) throws ClassNotFoundException
info.magnolia.objectfactory.Components#getComponentProvider()#getImplementation(Class)
ClassNotFoundException
public static Object newInstanceWithoutDiscovery(String className, Object[] args)
Classes
public static Object newInstanceWithoutDiscovery(String className)
Classes.getClassFactory()
public static Object getSingleton(Class interf)
Components.getSingleton(Class)
public static void setDefaultImplementation(Class interf, Class impl)
info.magnolia.test.ComponentsTestUtil
, otherwise see info.magnolia.objectfactory.DefaultComponentProvider#setDefaultImplementation(Class, Class)
public static void setDefaultImplementation(Class interf, String impl)
info.magnolia.test.ComponentsTestUtil
, otherwise see info.magnolia.objectfactory.DefaultComponentProvider#setDefaultImplementation(Class, String)
public static void setImplementation(Class interf, Class impl)
info.magnolia.test.ComponentsTestUtil
, otherwise see info.magnolia.objectfactory.DefaultComponentProvider#setImplementation(Class, Class)
public static void setImplementation(Class interf, String impl)
info.magnolia.test.ComponentsTestUtil
, otherwise see DefaultComponentProvider.setImplementation(Class, String)
public static void setInstance(Class interf, Object instance)
info.magnolia.test.ComponentsTestUtil
, otherwise see DefaultComponentProvider.setInstance(Class, Object)
public static void setInstanceFactory(Class interf, FactoryUtil.InstanceFactory factory)
info.magnolia.test.ComponentsTestUtil
, otherwise see DefaultComponentProvider.setInstanceFactory(Class, info.magnolia.objectfactory.ComponentFactory)
public static void clear()
info.magnolia.test.ComponentsTestUtil
, otherwise see DefaultComponentProvider.clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |