Uses of Interface
org.objenesis.instantiator.ObjectInstantiator
Packages that use ObjectInstantiator
Package
Description
-
Uses of ObjectInstantiator in org.objenesis
Fields in org.objenesis with type parameters of type ObjectInstantiatorModifier and TypeFieldDescriptionprotected ConcurrentHashMap<String, ObjectInstantiator<?>> ObjenesisBase.cacheStrategy cache.Methods in org.objenesis that return ObjectInstantiatorModifier and TypeMethodDescription<T> ObjectInstantiator<T> Objenesis.getInstantiatorOf(Class<T> clazz) Will pick the best instantiator for the provided class.<T> ObjectInstantiator<T> ObjenesisBase.getInstantiatorOf(Class<T> clazz) Will pick the best instantiator for the provided class.static <T> ObjectInstantiator<T> ObjenesisHelper.getInstantiatorOf(Class<T> clazz) Will pick the best instantiator for the provided class.static <T extends Serializable>
ObjectInstantiator<T> ObjenesisHelper.getSerializableObjectInstantiatorOf(Class<T> clazz) Same asObjenesisHelper.getInstantiatorOf(Class)but providing an instantiator emulating ObjectInputStream.readObject behavior. -
Uses of ObjectInstantiator in org.objenesis.instantiator.android
Classes in org.objenesis.instantiator.android that implement ObjectInstantiatorModifier and TypeClassDescriptionclassInstantiator for Android API level 10 and lover which creates objects without driving their constructors, using internal methods on the Dalvik implementation ofObjectInputStream.classInstantiator for Android API level 11 to 17 which creates objects without driving their constructors, using internal methods on the Dalvik implementation ofObjectStreamClass.classInstantiator for Android API level 18 and higher.classObjectInstantiatorfor Android which creates objects using the constructor from the first non-serializable parent class constructor, using internal methods on the Dalvik implementation ofObjectStreamClass. -
Uses of ObjectInstantiator in org.objenesis.instantiator.basic
Classes in org.objenesis.instantiator.basic that implement ObjectInstantiatorModifier and TypeClassDescriptionclassInstantiates a class by grabbing the no-args constructor, making it accessible and then calling Constructor.newInstance().classInstantiates a class by grabbing the no args constructor and calling Constructor.newInstance().classHelper class extended by instantiators for which the implementation was moved to the exotic project.classThe instantiator that always throws an exception.classThe simplest instantiator - simply calls Class.newInstance().classThe instantiator that always return a null instanceclassInstantiates a class by using a dummy input stream that always feeds data for an empty object of the same kind.classInstantiates a class by using reflection to make a call to private method ObjectStreamClass.newInstance, present in many JVM implementations.classShell keeping compatibility but delegating to objenesis-exotic which contains the real implementation.Fields in org.objenesis.instantiator.basic declared as ObjectInstantiatorModifier and TypeFieldDescriptionprivate final ObjectInstantiator<T> DelegatingToExoticInstantiator.wrappedMethods in org.objenesis.instantiator.basic that return ObjectInstantiatorModifier and TypeMethodDescriptionprivate ObjectInstantiator<T> DelegatingToExoticInstantiator.instantiator(String className, Class<T> type, Constructor<ObjectInstantiator<T>> constructor) Methods in org.objenesis.instantiator.basic that return types with arguments of type ObjectInstantiatorModifier and TypeMethodDescriptionprivate Class<ObjectInstantiator<T>> DelegatingToExoticInstantiator.instantiatorClass(String className) private Constructor<ObjectInstantiator<T>> DelegatingToExoticInstantiator.instantiatorConstructor(String className, Class<ObjectInstantiator<T>> clazz) Method parameters in org.objenesis.instantiator.basic with type arguments of type ObjectInstantiatorModifier and TypeMethodDescriptionprivate ObjectInstantiator<T> DelegatingToExoticInstantiator.instantiator(String className, Class<T> type, Constructor<ObjectInstantiator<T>> constructor) private Constructor<ObjectInstantiator<T>> DelegatingToExoticInstantiator.instantiatorConstructor(String className, Class<ObjectInstantiator<T>> clazz) -
Uses of ObjectInstantiator in org.objenesis.instantiator.exotic
Classes in org.objenesis.instantiator.exotic that implement ObjectInstantiatorModifier and TypeClassDescriptionclassThis instantiator will correctly bypass the constructors by instantiating the class using the default constructor from Object.classThis instantiator creates a class by dynamically extending it.Fields in org.objenesis.instantiator.exotic declared as ObjectInstantiatorModifier and TypeFieldDescriptionprivate final ObjectInstantiator<T> MagicInstantiator.instantiatorMethods in org.objenesis.instantiator.exotic that return ObjectInstantiatorModifier and TypeMethodDescriptionMagicInstantiator.getInstantiator()Get the underlying instantiator.private ObjectInstantiator<T> MagicInstantiator.newInstantiatorOf(Class<T> type) -
Uses of ObjectInstantiator in org.objenesis.instantiator.gcj
Classes in org.objenesis.instantiator.gcj that implement ObjectInstantiatorModifier and TypeClassDescriptionclassInstantiates a class by making a call to internal GCJ private methods.classBase class for GCJ-based instantiators.classInstantiates a class by making a call to internal GCJ private methods. -
Uses of ObjectInstantiator in org.objenesis.instantiator.perc
Classes in org.objenesis.instantiator.perc that implement ObjectInstantiatorModifier and TypeClassDescriptionclassInstantiates a class by making a call to internal Perc private methods.classInstantiates a class by making a call to internal Perc private methods. -
Uses of ObjectInstantiator in org.objenesis.instantiator.sun
Classes in org.objenesis.instantiator.sun that implement ObjectInstantiatorModifier and TypeClassDescriptionclassShell keeping compatibility but delegating to objenesis-exotic which contains the real implementation.classInstantiates an object, WITHOUT calling it's constructor, using internal sun.reflect.ReflectionFactory - a class only available on JDK's that use Sun's 1.4 (or later) Java implementation.classInstantiates an object using internal sun.reflect.ReflectionFactory - a class only available on JDK's that use Sun's 1.4 (or later) Java implementation.classInstantiates an object, WITHOUT calling its constructor, usingsun.misc.Unsafe.allocateInstance(). -
Uses of ObjectInstantiator in org.objenesis.strategy
Methods in org.objenesis.strategy that return ObjectInstantiatorModifier and TypeMethodDescription<T> ObjectInstantiator<T> InstantiatorStrategy.newInstantiatorOf(Class<T> type) Create a dedicated instantiator for the given class<T> ObjectInstantiator<T> SerializingInstantiatorStrategy.newInstantiatorOf(Class<T> type) Return anObjectInstantiatorallowing to create instance following the java serialization framework specifications.<T> ObjectInstantiator<T> SingleInstantiatorStrategy.newInstantiatorOf(Class<T> type) Return an instantiator for the wanted type and of the one and only type of instantiator returned by this class.<T> ObjectInstantiator<T> StdInstantiatorStrategy.newInstantiatorOf(Class<T> type) Return anObjectInstantiatorallowing to create instance without any constructor being called.