|
||||||||||
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 java.lang.Class |
getImplementation(java.lang.Class interf)
Deprecated. since 4.3 - use info.magnolia.objectfactory.Components#getComponentProvider()#getImplementation(Class) |
static java.lang.Object |
getSingleton(java.lang.Class interf)
Deprecated. since 4.3 - use Components.getSingleton(Class) |
static java.lang.Object |
newInstance(java.lang.Class interf)
Deprecated. since 4.3 - use info.magnolia.objectfactory.Components#getComponentProvider()#newInstance(Class) |
static java.lang.Object |
newInstanceWithoutDiscovery(java.lang.String className)
Deprecated. since 4.3 - use Classes.getClassFactory() |
static java.lang.Object |
newInstanceWithoutDiscovery(java.lang.String className,
java.lang.Object[] args)
Deprecated. since 4.3 - use Classes |
static void |
setDefaultImplementation(java.lang.Class interf,
java.lang.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(java.lang.Class interf,
java.lang.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(java.lang.Class interf,
java.lang.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(java.lang.Class interf,
java.lang.String impl)
Deprecated. since 4.3 - For tests, use info.magnolia.test.ComponentsTestUtil , otherwise see DefaultComponentProvider.setImplementation(Class, String) |
static void |
setInstance(java.lang.Class interf,
java.lang.Object instance)
Deprecated. since 4.3 - For tests, use info.magnolia.test.ComponentsTestUtil , otherwise see DefaultComponentProvider.setInstance(Class, Object) |
static void |
setInstanceFactory(java.lang.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 java.lang.Object newInstance(java.lang.Class interf)
info.magnolia.objectfactory.Components#getComponentProvider()#newInstance(Class)
public static java.lang.Class getImplementation(java.lang.Class interf) throws java.lang.ClassNotFoundException
info.magnolia.objectfactory.Components#getComponentProvider()#getImplementation(Class)
java.lang.ClassNotFoundException
public static java.lang.Object newInstanceWithoutDiscovery(java.lang.String className, java.lang.Object[] args)
Classes
public static java.lang.Object newInstanceWithoutDiscovery(java.lang.String className)
Classes.getClassFactory()
public static java.lang.Object getSingleton(java.lang.Class interf)
Components.getSingleton(Class)
public static void setDefaultImplementation(java.lang.Class interf, java.lang.Class impl)
info.magnolia.test.ComponentsTestUtil
, otherwise see info.magnolia.objectfactory.DefaultComponentProvider#setDefaultImplementation(Class, Class)
public static void setDefaultImplementation(java.lang.Class interf, java.lang.String impl)
info.magnolia.test.ComponentsTestUtil
, otherwise see info.magnolia.objectfactory.DefaultComponentProvider#setDefaultImplementation(Class, String)
public static void setImplementation(java.lang.Class interf, java.lang.Class impl)
info.magnolia.test.ComponentsTestUtil
, otherwise see info.magnolia.objectfactory.DefaultComponentProvider#setImplementation(Class, Class)
public static void setImplementation(java.lang.Class interf, java.lang.String impl)
info.magnolia.test.ComponentsTestUtil
, otherwise see DefaultComponentProvider.setImplementation(Class, String)
public static void setInstance(java.lang.Class interf, java.lang.Object instance)
info.magnolia.test.ComponentsTestUtil
, otherwise see DefaultComponentProvider.setInstance(Class, Object)
public static void setInstanceFactory(java.lang.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 |