|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.objectfactory.Classes
public class Classes
Entry point to the currently configured ClassFactory.
ClassFactory
Nested Class Summary | |
---|---|
protected static class |
Classes.ClassFactoryProvider
ClassFactoryProvider is used to hide the "swapability" of ClassFactory. |
Constructor Summary | |
---|---|
Classes()
|
Method Summary | ||
---|---|---|
static ClassFactory |
getClassFactory()
|
|
static
|
newInstance(java.lang.String className,
java.lang.Object... params)
Convenience/shortcut method for instantiating new classes. |
|
static
|
quietNewInstance(java.lang.String className,
java.lang.Object... params)
Convenience/shortcut for newInstance(String, Object...) , returning null both in case
of a ClassNotFoundException or if the class could not be instantiated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Classes()
Method Detail |
---|
public static <T> T newInstance(java.lang.String className, java.lang.Object... params) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
MgnlInstantiationException
ClassFactory
,
getClassFactory()
public static <T> T quietNewInstance(java.lang.String className, java.lang.Object... params)
newInstance(String, Object...)
, returning null both in case
of a ClassNotFoundException or if the class could not be instantiated.
(which could be related to the parameters, etc)
public static ClassFactory getClassFactory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |