| |
|
| java.lang.Object org.drools.objenesis.ObjenesisHelper
ObjenesisHelper | final public class ObjenesisHelper (Code) | | Use Objenesis in a static way. It is strongly not recommended to use this class.
author: Henri Tremblay |
getInstantiatorOf | final public static ObjectInstantiator getInstantiatorOf(Class clazz)(Code) | | Will pick the best instantiator for the provided class. If you need to create a lot of
instances from the same class, it is way more efficient to create them from the same
ObjectInstantiator than calling
ObjenesisHelper.newInstance(Class) .
Parameters: clazz - Class to instantiate Instantiator dedicated to the class |
newInstance | final public static Object newInstance(Class clazz)(Code) | | Will create a new object without any constructor being called
Parameters: clazz - Class to instantiate New instance of clazz |
newSerializableInstance | final public static Serializable newSerializableInstance(Class clazz)(Code) | | Will create an object just like it's done by ObjectInputStream.readObject (the default
constructor of the first non serializable class will be called)
Parameters: clazz - Class to instantiate New instance of clazz |
|
|
|