|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.runtime.system.NakedObjectsSystemAbstract
public abstract class NakedObjectsSystemAbstract
| Field Summary | |
|---|---|
static org.apache.log4j.Logger |
LOG
|
| Constructor Summary | |
|---|---|
NakedObjectsSystemAbstract(DeploymentType deploymentType)
|
|
NakedObjectsSystemAbstract(DeploymentType deploymentType,
NakedObjectsLocaleInitializer localeInitializer,
NakedObjectsTimeZoneInitializer timeZoneInitializer)
|
|
| Method Summary | |
|---|---|
DebugInfo |
debugSection(java.lang.String selectionName)
|
java.lang.String[] |
debugSectionNames()
|
protected abstract NakedObjectSessionFactory |
doCreateSessionFactory(DeploymentType deploymentType)
Hook method; the returned implementation is expected to use the same general approach as the subclass itself. |
abstract NakedObjectConfiguration |
getConfiguration()
Returns a snapshot of the configuration (although
once the NakedObjectsSystem is completely initialized, will effectively be immutable). |
DeploymentType |
getDeploymentType()
|
FixturesInstaller |
getFixturesInstaller()
|
LogonFixture |
getLogonFixture()
The LogonFixture, if any, obtained by running fixtures. |
NakedObjectSessionFactory |
getSessionFactory()
Populated after init(). |
void |
init()
|
protected abstract AuthenticationManager |
obtainAuthenticationManager(DeploymentType deploymentType)
|
protected abstract FixturesInstaller |
obtainFixturesInstaller()
This is the only Installer that is used by any (all) subclass implementations, because it
effectively is the component we need (as opposed to a builder/factory of the component we need). |
protected abstract PersistenceSessionFactory |
obtainPersistenceSessionFactory(DeploymentType deploymentType)
|
protected abstract NakedObjectReflector |
obtainReflector(DeploymentType deploymentType)
|
protected abstract java.util.List<java.lang.Object> |
obtainServices()
|
protected TemplateImageLoader |
obtainTemplateImageLoader()
Just returns a TemplateImageLoaderAwt; subclasses may override if
required. |
protected abstract UserProfileStore |
obtainUserProfileStore()
|
void |
shutdown()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.log4j.Logger LOG
| Constructor Detail |
|---|
public NakedObjectsSystemAbstract(DeploymentType deploymentType)
public NakedObjectsSystemAbstract(DeploymentType deploymentType,
NakedObjectsLocaleInitializer localeInitializer,
NakedObjectsTimeZoneInitializer timeZoneInitializer)
| Method Detail |
|---|
public DeploymentType getDeploymentType()
getDeploymentType in interface NakedObjectsSystempublic void init()
init in interface ApplicationScopedComponentpublic void shutdown()
shutdown in interface ApplicationScopedComponent
protected abstract NakedObjectSessionFactory doCreateSessionFactory(DeploymentType deploymentType)
throws NakedObjectSystemException
So, for example, NakedObjectsSystemUsingInstallers uses the InstallerLookup mechanism
to find its components. The corresponding ExecutionContextFactoryUsingInstallers object
returned by this method should use InstallerLookup likewise.
NakedObjectSystemExceptionpublic NakedObjectSessionFactory getSessionFactory()
init().
getSessionFactory in interface NakedObjectsSystempublic abstract NakedObjectConfiguration getConfiguration()
NakedObjectsSystemconfiguration (although
once the NakedObjectsSystem is completely initialized, will effectively be immutable).
getConfiguration in interface NakedObjectsSystemprotected TemplateImageLoader obtainTemplateImageLoader()
TemplateImageLoaderAwt; subclasses may override if
required.
protected abstract NakedObjectReflector obtainReflector(DeploymentType deploymentType)
throws NakedObjectSystemException
NakedObjectSystemException
protected abstract PersistenceSessionFactory obtainPersistenceSessionFactory(DeploymentType deploymentType)
throws NakedObjectSystemException
NakedObjectSystemException
protected abstract FixturesInstaller obtainFixturesInstaller()
throws NakedObjectSystemException
Installer that is used by any (all) subclass implementations, because it
effectively is the component we need (as opposed to a builder/factory of the component we need).
The fact that the component is an installer (and therefore can be InstallerLookup looked
up} is at this level really just an incidental implementation detail useful for the subclass that uses
InstallerLookup to create the other components.
NakedObjectSystemException
protected abstract AuthenticationManager obtainAuthenticationManager(DeploymentType deploymentType)
throws NakedObjectSystemException
NakedObjectSystemExceptionprotected abstract UserProfileStore obtainUserProfileStore()
protected abstract java.util.List<java.lang.Object> obtainServices()
public FixturesInstaller getFixturesInstaller()
public LogonFixture getLogonFixture()
LogonFixture, if any, obtained by running fixtures.
Intended to be used when for exploration (instead
of an ExplorationSession) or prototype deployments
(saves logging in). Should be ignored in other DeploymentTypes.
getLogonFixture in interface NakedObjectsSystempublic DebugInfo debugSection(java.lang.String selectionName)
debugSection in interface DebugSelectionpublic java.lang.String[] debugSectionNames()
debugSectionNames in interface DebugSelection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||