objenesis-1.0-2.jpp5.noarch.rpm


Advertisement

Description

objenesis - Instantiate New Object

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() constructor. * Container Frameworks - Objects can be dynamically instantatiated in non-standard ways.

Alternatives

Provides

  • objenesis = 1.0-2.jpp5

    Download

    Install Howto

    Fedora, CentOS, RHEL:
    1. Download the latest jpackage-release rpm from
      http://mirrors.dotsrc.org/jpackage/5.0/generic/free/RPMS/
    2. Install jpackage-release rpm:
      # rpm -Uvh jpackage-release*rpm
    3. Install objenesis rpm package:
      # yum install objenesis
    openSUSE:
    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

    Files

    • /etc/maven/fragments/objenesis
    • /usr/share/doc/objenesis-1.0/LICENSE.txt
    • /usr/share/java/objenesis-1.0.jar
    • /usr/share/java/objenesis-tck-1.0.jar
    • /usr/share/java/objenesis-tck.jar
    • /usr/share/java/objenesis.jar
    • /usr/share/java/objenesis/
    • /usr/share/maven2/poms/JPP-objenesis-parent.pom
    • /usr/share/maven2/poms/JPP-objenesis-tck.pom
    • /usr/share/maven2/poms/JPP-objenesis.pom

    Changelog

    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

    Advertisement
    Advertisement