Permission is granted to make and distribute verbatim copies of this manual provided that the copyright notice and this permission notice are preserved on all copies.
This manual describes how to develop applications to run with the Naked Objects framework, from simple prototypes to enterprise systems.
You can download Naked Objects via www.nakedobjects.org, or direct from SourceForge, under an open source licence.
This edition of the manual is intended for use with version 4 of the Naked Objects framework, which works with Java version 1.5 or higher.
Please note that the Hibernate plugin is not available in version 4.0, although it should be available in a subsequent release. Therefore, the sections of this manual that talk about Hibernate are not relevant at this time.
Fixtures are simple classes that are used to set up a naked objects system. The code for a fixture should be placed in the install method, which is run when the system installs the fixtures. Fixtures are only installed if the NakedObjectPersistor flags that it is uninitialised via its isInitialized method. For the in memory object store this will be every time it is started, and for other object stores will only be when they detect they have no persistent data.
Fixtures are registered with the Framework at startup via the properties file, using the fixtures properties. The fixtures property itself dictates which fixture classes are to be instantiated at startup, for example:
nakedobjects.fixtures = fixture.BookingsFixture, fixture.PerspectivesFixture
The prefix property allows you specify the common package name once and, hence omit them from the classes in the list. The following set of properties is therefore equivalent to the previous example.
nakedobjects.fixtures.prefix = fixture nakedobjects.fixtures = BookingsFixture, PerspectivesFixture