| java.lang.Object com.sun.xml.bind.v2.ClassFactory
ClassFactory | final public class ClassFactory (Code) | | Creates new instances of classes.
This code handles the case where the class is not public or the constructor is
not public.
since: 2.0 author: Kohsuke Kawaguchi |
Method Summary | |
public static T | create(Class<T> clazz) The same as
ClassFactory.create0 but with an error handling to make
the instanciation error fatal. | public static Object | create(Method method) Call a method in the factory class to get the object. | public static T | create0(Class<T> clazz) Creates a new instance of the class but throw exceptions without catching it. | public static Class<? extends T> | inferImplClass(Class<T> fieldType, Class[] knownImplClasses) Infers the instanciable implementation class that can be assigned to the given field type. |
COLLECTION_IMPL_CLASSES | final public static Class[] COLLECTION_IMPL_CLASSES(Code) | | |
create | public static Object create(Method method)(Code) | | Call a method in the factory class to get the object.
|
inferImplClass | public static Class<? extends T> inferImplClass(Class<T> fieldType, Class[] knownImplClasses)(Code) | | Infers the instanciable implementation class that can be assigned to the given field type.
nullif inference fails. |
|
|