objenesis - Instantiate New Object

Property Value
Distribution RPM Universal
Repository JPackage 6.0 all
Package filename objenesis-1.1-1.jpp6.noarch.rpm
Package name objenesis
Package version 1.1
Package release 1.jpp6
Package architecture noarch
Package type rpm
Homepage -
License -
Maintainer -
Download size 50.56 KB
Installed size 63.71 KB
Java already supports this 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.
* Constructors that have side effects.
* Constructors 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 overcomes 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
subclassed without needing to worry about the super()
* Container Frameworks - Objects can be dynamically
instantatiated in non-standard ways.


Package Version Architecture Repository
objenesis-1.0-2.jpp5.noarch.rpm 1.0 noarch JPackage 5.0
objenesis - - -


Name Value
java >= 1.6.0
jpackage-utils >= 1.7.5


Name Value
objenesis = 1.1-1.jpp6


Type URL
Mirror mirrors.dotsrc.org
Binary Package objenesis-1.1-1.jpp6.noarch.rpm
Source Package objenesis-1.1-1.jpp6.src.rpm

Install Howto

Fedora, CentOS, RHEL:
  1. Download latest jpackage-release rpm from
  2. Install jpackage-release rpm:
    # rpm -Uvh jpackage-release*rpm
  3. Install objenesis rpm package:
    # yum install objenesis
  1. Add the JPackage 6.0 repository:
    # zypper addrepo http://mirrors.dotsrc.org/jpackage/6.0/generic/free/ jpackage-6.0
  2. Install objenesis rpm package:
    # zypper install objenesis
Mandriva, Mageia:
  1. Add the JPackage 6.0 repository:
    # urpmi.addmedia jpackage-6.0 http://mirrors.dotsrc.org/jpackage/6.0/generic/free/ with hdlist.cz
  2. Update packages list:
    # urpmi.update -a
  3. Install objenesis rpm package:
    # urpmi objenesis




2011-12-11 - Ralph Apel <r.apel at r-apel.de> 0:1.1-1
- 1.1 for JPP-6
2009-02-27 - Ralph Apel <r.apel at r-apel.de> 0:1.0-2.jpp5
- BR xpp3-minimal and fix depmap accordingly
- Disown poms and fragments dirs
2008-06-18 - Ralph Apel <r.apel at r-apel.de> 0:1.0-1.jpp5
- First release

See Also

Package Description
objenesis-javadoc-1.1-1.jpp6.noarch.rpm Javadoc for objenesis
objenesis-manual-1.1-1.jpp6.noarch.rpm Documents for objenesis
odmg-3.0-7.jpp6.noarch.rpm ODMG 3.0 Java Binding
odmg-javadoc-3.0-7.jpp6.noarch.rpm Javadoc for odmg
odmg-repolib-3.0-7.jpp6.noarch.rpm Artifacts to be uploaded to a repository library
ognl-2.7.3-1.jpp6.noarch.rpm Object-Graph Navigation Language
ognl-javadoc-2.7.3-1.jpp6.noarch.rpm Javadoc for ognl
ognl-manual-2.7.3-1.jpp6.noarch.rpm Manual for ognl
omquery-0.92.3-5.jpp6.noarch.rpm XPath interface for XT
omquery-javadoc-0.92.3-5.jpp6.noarch.rpm Javadoc for omquery
opencsv-2.1-1.jpp6.noarch.rpm Simple CSV Parser
opencsv-javadoc-2.1-1.jpp6.noarch.rpm Javadoc for opencsv
opencsv-manual-2.1-1.jpp6.noarch.rpm Documents for opencsv
opends-1.0.0-5.jpp6.noarch.rpm OpenDS directory service
opends-javadoc-1.0.0-5.jpp6.noarch.rpm Javadoc for opends