Android Open Source - Example code objenesis






Project Summary

Okay, it's pretty easy to instantiate objects in Java through standard reflection. However there are many cases where you need to go beyond what reflection provides. For example, if there's no public constructor, you want to bypass the constructor code.

Web Site / Source Repository

objenesis is hosted in the following web site
https://github.com/easymock/objenesis

If you think the Android project objenesis listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Project Detail

The following table is the detailed list of objenesis.

ItemValue
Java File Count63
Target SDK Version18
Minimum SDK Version1
Activity Count0




License

The license information of objenesis is as follows:

Apache License

Java Source Files

org.objenesis.ObjenesisBase.java
org.objenesis.ObjenesisException.java
org.objenesis.ObjenesisHelper.java
org.objenesis.ObjenesisSerializer.java
org.objenesis.ObjenesisStd.java
org.objenesis.Objenesis.java
org.objenesis.benchmark.ConcurrentGetInstantiator.java
org.objenesis.benchmark.CreateObject.java
org.objenesis.instantiator.ObjectInstantiator.java
org.objenesis.instantiator.SerializationInstantiatorHelper.java
org.objenesis.instantiator.android.Android10Instantiator.java
org.objenesis.instantiator.android.Android17Instantiator.java
org.objenesis.instantiator.android.Android18Instantiator.java
org.objenesis.instantiator.android.AndroidSerializationInstantiator.java
org.objenesis.instantiator.basic.AccessibleInstantiator.java
org.objenesis.instantiator.basic.ConstructorInstantiator.java
org.objenesis.instantiator.basic.FailingInstantiator.java
org.objenesis.instantiator.basic.NewInstanceInstantiator.java
org.objenesis.instantiator.basic.NullInstantiator.java
org.objenesis.instantiator.basic.ObjectInputStreamInstantiator.java
org.objenesis.instantiator.basic.ObjectStreamClassInstantiator.java
org.objenesis.instantiator.gcj.GCJInstantiatorBase.java
org.objenesis.instantiator.gcj.GCJInstantiator.java
org.objenesis.instantiator.gcj.GCJSerializationInstantiator.java
org.objenesis.instantiator.jrockit.JRockitLegacyInstantiator.java
org.objenesis.instantiator.perc.PercInstantiator.java
org.objenesis.instantiator.perc.PercSerializationInstantiator.java
org.objenesis.instantiator.sun.SunReflectionFactoryHelper.java
org.objenesis.instantiator.sun.SunReflectionFactoryInstantiator.java
org.objenesis.instantiator.sun.SunReflectionFactorySerializationInstantiator.java
org.objenesis.instantiator.sun.UnsafeFactoryInstantiator.java
org.objenesis.strategy.BaseInstantiatorStrategy.java
org.objenesis.strategy.InstantiatorStrategy.java
org.objenesis.strategy.PlatformDescription.java
org.objenesis.strategy.SerializingInstantiatorStrategy.java
org.objenesis.strategy.SingleInstantiatorStrategy.java
org.objenesis.strategy.StdInstantiatorStrategy.java
org.objenesis.tck.CandidateLoader.java
org.objenesis.tck.Main.java
org.objenesis.tck.Reporter.java
org.objenesis.tck.TCK.java
org.objenesis.tck.TextReporter.java
org.objenesis.tck.android.ObjenesisTest.java
org.objenesis.tck.android.TckInstrumentation.java
org.objenesis.tck.candidates.ConstructorThrowingException.java
org.objenesis.tck.candidates.ConstructorWithArguments.java
org.objenesis.tck.candidates.ConstructorWithMandatoryArguments.java
org.objenesis.tck.candidates.DefaultPackageConstructor.java
org.objenesis.tck.candidates.DefaultPrivateConstructor.java
org.objenesis.tck.candidates.DefaultProtectedConstructor.java
org.objenesis.tck.candidates.DefaultPublicConstructor.java
org.objenesis.tck.candidates.NoConstructor.java
org.objenesis.tck.candidates.SerializableConstructorThrowingException.java
org.objenesis.tck.candidates.SerializableConstructorWithArguments.java
org.objenesis.tck.candidates.SerializableConstructorWithMandatoryArguments.java
org.objenesis.tck.candidates.SerializableDefaultPackageConstructor.java
org.objenesis.tck.candidates.SerializableDefaultPrivateConstructor.java
org.objenesis.tck.candidates.SerializableDefaultProtectedConstructor.java
org.objenesis.tck.candidates.SerializableDefaultPublicConstructor.java
org.objenesis.tck.candidates.SerializableNoConstructor.java
org.objenesis.tck.candidates.SerializableReplacer.java
org.objenesis.tck.candidates.SerializableResolver.java
org.objenesis.tck.candidates.SerializableWithAncestorThrowingException.java