org.nakedobjects.plugins.headless.junit.internal
Class FixtureInstallerAnnotatedClass

java.lang.Object
  extended by org.nakedobjects.runtime.installers.InstallerAbstract
      extended by org.nakedobjects.runtime.fixturesinstaller.FixturesInstallerAbstract
          extended by org.nakedobjects.plugins.headless.junit.internal.FixtureInstallerAnnotatedClass
All Implemented Interfaces:
ApplicationScopedComponent, Component, Installer, ConfigurationBuilderAware, FixturesInstaller

public class FixtureInstallerAnnotatedClass
extends FixturesInstallerAbstract


Field Summary
 
Fields inherited from interface org.nakedobjects.runtime.fixturesinstaller.FixturesInstaller
TYPE
 
Constructor Summary
FixtureInstallerAnnotatedClass()
           
 
Method Summary
 void addFixturesAnnotatedOn(java.lang.Class<?> javaClass)
          Should be called prior to installing; typically called immediately after instantiation.
protected  void addFixturesTo(FixturesInstallerDelegate delegate)
          Just copies the fixtures added using addFixturesAnnotatedOn(Class) into the delegate.
 
Methods inherited from class org.nakedobjects.runtime.fixturesinstaller.FixturesInstallerAbstract
getLogonFixture, installFixtures
 
Methods inherited from class org.nakedobjects.runtime.installers.InstallerAbstract
addConfigurationResources, getConfiguration, getConfigurationResources, getName, getType, init, setConfiguration, setConfigurationBuilder, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nakedobjects.metamodel.commons.component.Installer
getConfigurationResources, getName, getType
 
Methods inherited from interface org.nakedobjects.metamodel.commons.component.ApplicationScopedComponent
init, shutdown
 

Constructor Detail

FixtureInstallerAnnotatedClass

public FixtureInstallerAnnotatedClass()
See Also:
addFixturesAnnotatedOn(Class)
Method Detail

addFixturesTo

protected void addFixturesTo(FixturesInstallerDelegate delegate)
Just copies the fixtures added using addFixturesAnnotatedOn(Class) into the delegate.

Specified by:
addFixturesTo in class FixturesInstallerAbstract

addFixturesAnnotatedOn

public void addFixturesAnnotatedOn(java.lang.Class<?> javaClass)
                            throws java.lang.InstantiationException,
                                   java.lang.IllegalAccessException
Should be called prior to installing; typically called immediately after instantiation.

Note: an alternative design would be to have a 1-arg constructor, but the convention for installers is to make them no-arg.

Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.