|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.runtime.system.NakedObjectsSystemAbstract
org.nakedobjects.runtime.system.NakedObjectsSystemSimple
public abstract class NakedObjectsSystemSimple
A simple implementation of NakedObjectsSystem, intended
for use by Spring (dependency injection) or for testing.
Constructor injection is used for non-defaulted, mandatory components. Setter-based injection can be used for components that will otherwise by defaulted or are optional.
| Field Summary |
|---|
| Fields inherited from class org.nakedobjects.runtime.system.NakedObjectsSystemAbstract |
|---|
LOG |
| Constructor Summary | |
|---|---|
NakedObjectsSystemSimple(DeploymentType deploymentType,
NakedObjectConfiguration configuration)
Dependency injection of NakedObjectConfiguration. |
|
| Methods inherited from class org.nakedobjects.runtime.system.NakedObjectsSystemAbstract |
|---|
debugSection, debugSectionNames, getDeploymentType, getFixturesInstaller, getLogonFixture, getSessionFactory, init, shutdown |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NakedObjectsSystemSimple(DeploymentType deploymentType,
NakedObjectConfiguration configuration)
NakedObjectConfiguration.
All other components are either optional or defaulted.
| Method Detail |
|---|
protected abstract NakedObjectSessionFactory doCreateSessionFactory(DeploymentType deploymentType)
throws NakedObjectSystemException
NakedObjectsSystemAbstract
So, for example, NakedObjectsSystemUsingInstallers uses the InstallerLookup mechanism
to find its components. The corresponding ExecutionContextFactoryUsingInstallers object
returned by this method should use InstallerLookup likewise.
doCreateSessionFactory in class NakedObjectsSystemAbstractNakedObjectSystemExceptionpublic NakedObjectConfiguration getConfiguration()
getConfiguration in interface NakedObjectsSystemgetConfiguration in class NakedObjectsSystemAbstractprotected AuthenticationManager obtainAuthenticationManager(DeploymentType deploymentType)
AuthenticationManager, if any.
obtainAuthenticationManager in class NakedObjectsSystemAbstractpublic void setAuthenticationManager(AuthenticationManager authenticationManager)
AuthenticationManager.
It will otherwise be null.
protected FixturesInstaller obtainFixturesInstaller()
FixturesInstaller, if any.
obtainFixturesInstaller in class NakedObjectsSystemAbstractpublic void setFixturesInstaller(FixturesInstaller installer)
FixturesInstaller.
It will otherwise be null.
protected TemplateImageLoader obtainTemplateImageLoader()
TemplateImageLoader, if any.
obtainTemplateImageLoader in class NakedObjectsSystemAbstractpublic void setTemplateImageLoader(TemplateImageLoader templateImageLoader)
TemplateImageLoader.
It will otherwise be defaulted.
public TemplateImageLoader getTemplateImageLoader()
protected NakedObjectReflector obtainReflector(DeploymentType deploymentType)
throws NakedObjectSystemException
NakedObjectReflector.
obtainReflector in class NakedObjectsSystemAbstractNakedObjectSystemExceptionsetReflector(NakedObjectReflector)public void setReflector(NakedObjectReflector reflector)
public NakedObjectReflector getReflector()
protected PersistenceSessionFactory obtainPersistenceSessionFactory(DeploymentType deploymentType)
throws NakedObjectSystemException
PersistenceSessionFactory.
obtainPersistenceSessionFactory in class NakedObjectsSystemAbstractNakedObjectSystemExceptionsetPersistenceSessionFactory(PersistenceSessionFactory)public void setPersistenceSessionFactory(PersistenceSessionFactory persistenceSessionFactory)
public void setUserProfileStore(UserProfileStore userProfileStore)
protected UserProfileStore obtainUserProfileStore()
obtainUserProfileStore in class NakedObjectsSystemAbstractpublic void setServiceList(java.util.List<java.lang.Object> serviceList)
protected java.util.List<java.lang.Object> obtainServices()
obtainServices in class NakedObjectsSystemAbstract
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||