Home
last modified time | relevance | path

Searched refs:ObjectInstantiator (Results 1 – 25 of 33) sorted by relevance

12

/external/objenesis/main/src/main/java/org/objenesis/
DObjenesisBase.java18 import org.objenesis.instantiator.ObjectInstantiator;
35 protected ConcurrentHashMap<String, ObjectInstantiator<?>> cache;
57 this.cache = useCache ? new ConcurrentHashMap<String, ObjectInstantiator<?>>() : null; in ObjenesisBase()
85 public <T> ObjectInstantiator<T> getInstantiatorOf(Class<T> clazz) { in getInstantiatorOf()
92 ObjectInstantiator<?> instantiator = cache.get(clazz.getName()); in getInstantiatorOf()
94 ObjectInstantiator<?> newInstantiator = strategy.newInstantiatorOf(clazz); in getInstantiatorOf()
100 return (ObjectInstantiator<T>) instantiator; in getInstantiatorOf()
DObjenesisHelper.java20 import org.objenesis.instantiator.ObjectInstantiator;
68 public static <T> ObjectInstantiator<T> getInstantiatorOf(Class<T> clazz) { in getInstantiatorOf()
81 …public static <T extends Serializable> ObjectInstantiator<T> getSerializableObjectInstantiatorOf(C… in getSerializableObjectInstantiatorOf()
DObjenesis.java18 import org.objenesis.instantiator.ObjectInstantiator;
45 <T> ObjectInstantiator<T> getInstantiatorOf(Class<T> clazz); in getInstantiatorOf()
/external/objenesis/main/src/main/java/org/objenesis/strategy/
DSingleInstantiatorStrategy.java19 import org.objenesis.instantiator.ObjectInstantiator;
41 public <T extends ObjectInstantiator<?>> SingleInstantiatorStrategy(Class<T> instantiator) { in SingleInstantiatorStrategy()
59 public <T> ObjectInstantiator<T> newInstantiatorOf(Class<T> type) { in newInstantiatorOf()
61 return (ObjectInstantiator<T>) constructor.newInstance(type); in newInstantiatorOf()
DInstantiatorStrategy.java18 import org.objenesis.instantiator.ObjectInstantiator;
34 <T> ObjectInstantiator<T> newInstantiatorOf(Class<T> type); in newInstantiatorOf()
DSerializingInstantiatorStrategy.java19 import org.objenesis.instantiator.ObjectInstantiator;
56 public <T> ObjectInstantiator<T> newInstantiatorOf(Class<T> type) { in newInstantiatorOf()
/external/objenesis/tck/src/main/java/org/objenesis/tck/search/
DSearchWorkingInstantiator.java18 import org.objenesis.instantiator.ObjectInstantiator;
51 …SortedSet<String> classes = ClassEnumerator.getClassesForPackage(ObjectInstantiator.class.getPacka… in searchForInstantiator()
70 if(c.isInterface() || !ObjectInstantiator.class.isAssignableFrom(c)) { in searchForInstantiator()
82 ObjectInstantiator<?> instantiator = in searchForInstantiator()
83 (ObjectInstantiator<?>) constructor.newInstance(toInstantiate); in searchForInstantiator()
/external/objenesis/main/src/test/java/org/objenesis/instantiator/sun/
DMagicInstantiatorTest.java21 import org.objenesis.instantiator.ObjectInstantiator;
42 ObjectInstantiator<EmptyClass> o1 = new MagicInstantiator<EmptyClass>(EmptyClass.class); in testNewInstance()
45 ObjectInstantiator<EmptyClass> o2 = new MagicInstantiator<EmptyClass>(EmptyClass.class); in testNewInstance()
51ObjectInstantiator<EmptyClass> o1 = new MagicInstantiator<EmptyClass>(EmptyClass.class).getInstant… in testInternalInstantiator()
/external/objenesis/main/src/test/java/org/objenesis/
DObjenesisTest.java21 import org.objenesis.instantiator.ObjectInstantiator;
61 ObjectInstantiator<?> i1 = o.getInstantiatorOf(getClass()); in testGetInstantiatorOf()
66 ObjectInstantiator<?> i2 = o.getInstantiatorOf(getClass()); in testGetInstantiatorOf()
87 public <T> ObjectInstantiator<T> newInstantiatorOf(Class<T> type) { in newInstantiatorOf()
/external/objenesis/main/src/main/java/org/objenesis/instantiator/sun/
DMagicInstantiator.java23 import org.objenesis.instantiator.ObjectInstantiator;
38 public class MagicInstantiator<T> implements ObjectInstantiator<T> {
69 private ObjectInstantiator<T> instantiator;
84 public ObjectInstantiator<T> getInstantiator() { in getInstantiator()
88 private <T> ObjectInstantiator<T> newInstantiatorOf(Class<T> type) { in newInstantiatorOf()
92 Class<ObjectInstantiator<T>> clazz = getExistingClass(getClass().getClassLoader(), className); in newInstantiatorOf()
175 in.writeUTF(ObjectInstantiator.class.getName().replace('.', '/')); in writeExtendingClass()
DSunReflectionFactoryInstantiator.java21 import org.objenesis.instantiator.ObjectInstantiator;
35 public class SunReflectionFactoryInstantiator<T> implements ObjectInstantiator<T> {
DSunReflectionFactorySerializationInstantiator.java22 import org.objenesis.instantiator.ObjectInstantiator;
38 public class SunReflectionFactorySerializationInstantiator<T> implements ObjectInstantiator<T> {
DUnsafeFactoryInstantiator.java19 import org.objenesis.instantiator.ObjectInstantiator;
37 public class UnsafeFactoryInstantiator<T> implements ObjectInstantiator<T> {
/external/objenesis/tck/src/test/java/org/objenesis/tck/
DTCKTest.java24 import org.objenesis.instantiator.ObjectInstantiator;
37 public <T> ObjectInstantiator<T> getInstantiatorOf(Class<T> clazz) { in getInstantiatorOf()
47 public <T> ObjectInstantiator<T> getInstantiatorOf(Class<T> clazz) { in getInstantiatorOf()
112 public <T> ObjectInstantiator<T> getInstantiatorOf(Class<T> clazz) { in getInstantiatorOf()
/external/objenesis/main/src/main/java/org/objenesis/instantiator/basic/
DNullInstantiator.java18 import org.objenesis.instantiator.ObjectInstantiator;
28 public class NullInstantiator<T> implements ObjectInstantiator<T> {
DFailingInstantiator.java19 import org.objenesis.instantiator.ObjectInstantiator;
29 public class FailingInstantiator<T> implements ObjectInstantiator<T> {
DNewInstanceInstantiator.java19 import org.objenesis.instantiator.ObjectInstantiator;
31 public class NewInstanceInstantiator<T> implements ObjectInstantiator<T> {
DConstructorInstantiator.java21 import org.objenesis.instantiator.ObjectInstantiator;
34 public class ConstructorInstantiator<T> implements ObjectInstantiator<T> {
DObjectStreamClassInstantiator.java22 import org.objenesis.instantiator.ObjectInstantiator;
37 public class ObjectStreamClassInstantiator<T> implements ObjectInstantiator<T> {
/external/objenesis/main/src/test/java/org/objenesis/instantiator/basic/
DProxyingInstantiatorTest.java21 import org.objenesis.instantiator.ObjectInstantiator;
33 ObjectInstantiator<EmptyClass> inst = new ProxyingInstantiator<EmptyClass>(EmptyClass.class); in testNewInstance()
/external/objenesis/main/src/main/java/org/objenesis/instantiator/gcj/
DGCJInstantiatorBase.java23 import org.objenesis.instantiator.ObjectInstantiator;
32 public abstract class GCJInstantiatorBase<T> implements ObjectInstantiator<T> {
/external/objenesis/main/src/main/java/org/objenesis/instantiator/perc/
DPercInstantiator.java22 import org.objenesis.instantiator.ObjectInstantiator;
35 public class PercInstantiator<T> implements ObjectInstantiator<T> {
/external/objenesis/main/src/main/java/org/objenesis/instantiator/android/
DAndroid10Instantiator.java22 import org.objenesis.instantiator.ObjectInstantiator;
34 public class Android10Instantiator<T> implements ObjectInstantiator<T> {
DAndroid18Instantiator.java23 import org.objenesis.instantiator.ObjectInstantiator;
34 public class Android18Instantiator<T> implements ObjectInstantiator<T> {
DAndroid17Instantiator.java23 import org.objenesis.instantiator.ObjectInstantiator;
34 public class Android17Instantiator<T> implements ObjectInstantiator<T> {

12