|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.runtime.fixturesinstaller.FixturesInstallerDelegate
public class FixturesInstallerDelegate
Helper for FixturesInstaller implementations.
Does the mechanics of actually installing the fixtures.
| Field Summary | |
|---|---|
protected java.util.List<java.lang.Object> |
fixtures
|
| Constructor Summary | |
|---|---|
FixturesInstallerDelegate()
The PersistenceSession used will be that from NakedObjectsContext. |
|
FixturesInstallerDelegate(PersistenceSession persistenceSession)
For testing, supply own PersistenceSession rather than lookup from context. |
|
| Method Summary | |
|---|---|
void |
addFixture(java.lang.Object fixture)
Automatically flattens any Lists, recursively (depth-first) if necessary. |
void |
clearFixtures()
Allows the set of fixtures to be cleared (for whatever reason). |
protected java.util.List<java.lang.Object> |
getFixtures()
Returns all fixtures that have been added. |
LogonFixture |
getLogonFixture()
The LogonFixture, if any. |
void |
installFixtures()
Installs all { added fixtures fixtures (ie as returned by
getFixtures()). |
protected void |
postInstallFixtures(PersistenceSession persistenceSession)
Hook - default does nothing. |
protected void |
preInstallFixtures(PersistenceSession persistenceSession)
Hook - default does nothing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final java.util.List<java.lang.Object> fixtures
| Constructor Detail |
|---|
public FixturesInstallerDelegate()
PersistenceSession used will be that from NakedObjectsContext.
public FixturesInstallerDelegate(PersistenceSession persistenceSession)
PersistenceSession rather than lookup from context.
persistenceSession - | Method Detail |
|---|
public void addFixture(java.lang.Object fixture)
Lists, recursively (depth-first) if necessary.
protected java.util.List<java.lang.Object> getFixtures()
added.
public void clearFixtures()
public final void installFixtures()
added fixtures fixtures (ie as returned by
getFixtures()).
The set of fixtures (as per getFixtures()) is not cleared after installation; this
allows the FixtureBuilderAbstract to be reused across multiple tests.
protected void preInstallFixtures(PersistenceSession persistenceSession)
protected void postInstallFixtures(PersistenceSession persistenceSession)
public LogonFixture getLogonFixture()
LogonFixture, if any.
Used to automatically logon if in DeploymentType.PROTOTYPE mode.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||