Paketname | libobjenesis-java |
Beschreibung | Java library to instantiate a new object of a particular class |
Archiv/Repository | Offizielles Debian Archiv squeeze (main) |
Version | 1.2-1 |
Sektion | java |
Priorität | optional |
Installierte Größe | 96 Byte |
Hängt ab von | default-jre-headless | java2-runtime-headless |
Empfohlene Pakete | |
Paketbetreuer | Debian Java Maintainers |
Quelle | objenesis |
Paketgröße | 23470 Byte |
Prüfsumme MD5 | 344fa2bea51a5e3f5b6ad058944f1030 |
Prüfsumme SHA1 | 2ed5d50dfc3ff80974a8091308292bdd4f9fbf4d |
Prüfsumme SHA256 | 2484dfbd6cee02063f15c8c272672092ef2cf87548b5d0b55051c7a96dfaec60 |
Link zum Herunterladen | libobjenesis-java_1.2-1_all.deb |
Ausführliche Beschreibung | Objenesis is a small Java library that serves one purpose: to instantiate a
new object of a particular class.
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.
|