objenesis - Instantiate New Object

Property Value
Distribution RPM Universal
Repository JPackage 5.0 all
Package name objenesis
Package version 1.0
Package release 2.jpp5
Package architecture noarch
Package type rpm
Installed size 60.65 KB
Download size 47.87 KB
Official Mirror mirrors.dotsrc.org
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.1-1.jpp6.noarch.rpm 1.1 noarch JPackage 6.0
objenesis - - -


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


Name Value
objenesis = 1.0-2.jpp5


Type URL
Binary Package objenesis-1.0-2.jpp5.noarch.rpm
Source Package objenesis-1.0-2.jpp5.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 5.0 repository:
    # zypper addrepo http://mirrors.dotsrc.org/jpackage/5.0/generic/free/ jpackage-5.0
  2. Install objenesis rpm package:
    # zypper install objenesis
Mandriva, Mageia:
  1. Add the JPackage 5.0 repository:
    # urpmi.addmedia jpackage-5.0 http://mirrors.dotsrc.org/jpackage/5.0/generic/free/ with hdlist.cz
  2. Update packages list:
    # urpmi.update -a
  3. Install objenesis rpm package:
    # urpmi objenesis




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.0-2.jpp5.noarch.rpm Javadoc for objenesis
objenesis-manual-1.0-2.jpp5.noarch.rpm Documents for objenesis
odmg-3.0-5.jpp5.noarch.rpm ODMG 3.0 Java Binding
odmg-javadoc-3.0-5.jpp5.noarch.rpm Javadoc for odmg
odmg-repolib-3.0-5.jpp5.noarch.rpm Artifacts to be uploaded to a repository library
ognl-2.6.9-3.jpp5.noarch.rpm Object-Graph Navigation Language
ognl-javadoc-2.6.9-3.jpp5.noarch.rpm Javadoc for ognl
ognl-manual-2.6.9-3.jpp5.noarch.rpm Manual for ognl
omquery-0.92.3-3.jpp5.noarch.rpm XPath interface for XT
omquery-javadoc-0.92.3-3.jpp5.noarch.rpm Javadoc for omquery
openejb1-1.0-2.jpp5.noarch.rpm EJB Container System and EJB Server
openejb1-demo-1.0-2.jpp5.noarch.rpm Samples for openejb1
openejb1-javadoc-1.0-2.jpp5.noarch.rpm Javadoc for openejb1
openejb1-manual-1.0-2.jpp5.noarch.rpm Documents for openejb1
openjpa-1.0.2-1jpp.noarch.rpm Apache OpenJPA