objenesis - A library for instantiating Java objects

Distribution: Mageia 6.0
Repository: Mageia Core i586
Package name: objenesis
Package version: 2.1
Package release: 5.mga6
Package architecture: noarch
Package type: rpm
Installed size: 157.18 KB
Download size: 76.20 KB
Official Mirror: distrib-coffee.ipsl.jussieu.fr
Objenesis is a small Java library that serves one purpose: to instantiate a new object of a particular class. Java supports dynamic instantiation of classes using Class.newInstance(); however, this only works if the class has an appropriate constructor. There are many times when a class cannot be instantiated this way, such as when the class contains constructors that require arguments, that have side effects, and/or that throw exceptions. As a result, it is common to see restrictions in libraries stating that classes must require a default constructor. Objenesis aims to overcome these restrictions by bypassing the constructor on object instantiation. Needing to instantiate an object without calling the constructor is a fairly specialized task, however there are certain cases when this is useful: * Serialization, Remoting and Persistence - Objects need to be instantiated and restored to a specific state, without invoking code. * Proxies, AOP Libraries and Mock Objects - Classes can be sub-classed without needing to worry about the super() constructor. * Container Frameworks - Objects can be dynamically instantiated in non-standard ways.



  • mvn(org.objenesis:objenesis) == 2.1
  • mvn(org.objenesis:objenesis-parent:pom:) == 2.1
  • mvn(org.objenesis:objenesis-tck) == 2.1
  • mvn(org.objenesis:objenesis-tck:pom:) == 2.1
  • mvn(org.objenesis:objenesis:pom:) == 2.1
  • objenesis == 2.1-5.mga6
  • osgi(org.objenesis) == 2.1.0


    Install Howto

    1. Enable Mageia Core repository on "Install and Remove Software"
    2. Update packages list:
      # urpmi.update -a
    3. Install objenesis rpm package:
      # urpmi objenesis


    • /usr/share/doc/objenesis/LICENSE.txt
    • /usr/share/java/objenesis/objenesis-tck.jar
    • /usr/share/java/objenesis/objenesis.jar
    • /usr/share/maven-metadata/objenesis.xml
    • /usr/share/maven-poms/objenesis/objenesis-parent.pom
    • /usr/share/maven-poms/objenesis/objenesis-tck.pom
    • /usr/share/maven-poms/objenesis/objenesis.pom


    2017-05-18 - neoclust <neoclust> 2.1-5.mga6 + Revision: 1102875 - Fix build with current maven-jar-plugin - Second rebuild of the java stack

    2016-02-24 - neoclust <neoclust> 2.1-3.mga6 + Revision: 977748 - First rebuild of the java stack - sync package objenesis with fedora + umeabot <umeabot> - Mageia 6 Mass Rebuild

    2014-12-28 - dmorgan <dmorgan> 1.2-16.mga5 + Revision: 806907 - Rebuild against fixed stack

    2014-10-15 - umeabot <umeabot> 1.2-8.mga5 + Revision: 742254 - Second Mageia 5 Mass Rebuild - Mageia 5 Mass Rebuild

    2014-06-14 - dmorgan <dmorgan> 1.2-6.mga5 + Revision: 636205 - Build with xmvn