|
||||||||||
| 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.installers.NakedObjectsSystemUsingInstallers
public class NakedObjectsSystemUsingInstallers
| Field Summary | |
|---|---|
static org.apache.log4j.Logger |
LOG
|
| Constructor Summary | |
|---|---|
NakedObjectsSystemUsingInstallers(DeploymentType deploymentType,
InstallerLookup installerLookup)
|
|
| Method Summary | |
|---|---|
protected NakedObjectSessionFactory |
createSessionFactory(DeploymentType deploymentType,
UserProfileLoader userProfileLoader,
PersistenceSessionFactory persistenceSessionFactory)
Overloaded version designed to be called by subclasses that need to explicitly specify different persistence mechanisms. |
NakedObjectSessionFactory |
doCreateSessionFactory(DeploymentType deploymentType)
Hook method; the returned implementation is expected to use the same general approach as the subclass itself. |
NakedObjectConfiguration |
getConfiguration()
Returns a snapshot of the configuration held by the
installer lookup. |
InstallerLookup |
getInstallerLookup()
As per constructor. |
void |
lookupAndSetAuthenticatorAndAuthorization(boolean isProduction)
|
void |
lookupAndSetFixturesInstaller()
|
void |
lookupAndSetUserProfileFactoryInstaller()
|
protected AuthenticationManager |
obtainAuthenticationManager(DeploymentType deploymentType)
|
protected AuthorizationManager |
obtainAuthorizationManager(DeploymentType deploymentType)
|
protected 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 PersistenceSessionFactory |
obtainPersistenceSessionFactory(DeploymentType deploymentType)
|
protected NakedObjectReflector |
obtainReflector(DeploymentType deploymentType)
|
protected java.util.List<java.lang.Object> |
obtainServices()
|
protected TemplateImageLoader |
obtainTemplateImageLoader()
Uses the TemplateImageLoader configured in InstallerLookup, if available, else falls
back to that of the superclass. |
protected UserProfileStore |
obtainUserProfileStore()
|
void |
setAuthenticationInstaller(AuthenticationManagerInstaller authenticationManagerInstaller)
Set the type of connection to used to access the server. |
void |
setAuthorizationInstaller(AuthorizationManagerInstaller authorizationManagerInstaller)
Set the type of connection to used to access the server. |
void |
setFixtureInstaller(FixturesInstaller fixtureInstaller)
|
void |
setPersistenceMechanismInstaller(PersistenceMechanismInstaller persistenceMechanismInstaller)
|
void |
setReflectorInstaller(NakedObjectReflectorInstaller reflectorInstaller)
|
void |
setServicesInstaller(ServicesInstaller servicesInstaller)
|
void |
setUserProfileStoreInstaller(UserProfileStoreInstaller userProfilestoreInstaller)
|
| 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 |
| Field Detail |
|---|
public static final org.apache.log4j.Logger LOG
| Constructor Detail |
|---|
public NakedObjectsSystemUsingInstallers(DeploymentType deploymentType,
InstallerLookup installerLookup)
| Method Detail |
|---|
public InstallerLookup getInstallerLookup()
constructor.
public 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 NakedObjectsSystemAbstractNakedObjectSystemException
protected final NakedObjectSessionFactory createSessionFactory(DeploymentType deploymentType,
UserProfileLoader userProfileLoader,
PersistenceSessionFactory persistenceSessionFactory)
throws NakedObjectSystemException
This is not a hook method, rather it is designed to be called from the
hook method.
NakedObjectSystemExceptionpublic NakedObjectConfiguration getConfiguration()
configuration held by the
installer lookup.
getConfiguration in interface NakedObjectsSystemgetConfiguration in class NakedObjectsSystemAbstractInstallerLookup.getConfiguration()public void lookupAndSetAuthenticatorAndAuthorization(boolean isProduction)
public void setAuthenticationInstaller(AuthenticationManagerInstaller authenticationManagerInstaller)
Note that the NakedObjectSessionFactoryUsingInstallers also checks the
ClientConnectionInstaller twice over: to see if a PersistenceSessionProxy should be
used as a persistor, and for any FacetDecoratorInstallers.
public void setAuthorizationInstaller(AuthorizationManagerInstaller authorizationManagerInstaller)
Note that the NakedObjectSessionFactoryUsingInstallers also checks the
ClientConnectionInstaller twice over: to see if a PersistenceSessionProxy should be
used as a persistor, and for any FacetDecoratorInstallers.
protected AuthenticationManager obtainAuthenticationManager(DeploymentType deploymentType)
obtainAuthenticationManager in class NakedObjectsSystemAbstractprotected AuthorizationManager obtainAuthorizationManager(DeploymentType deploymentType)
public void lookupAndSetFixturesInstaller()
public void setFixtureInstaller(FixturesInstaller fixtureInstaller)
protected FixturesInstaller obtainFixturesInstaller()
throws NakedObjectSystemException
NakedObjectsSystemAbstractInstaller 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.
obtainFixturesInstaller in class NakedObjectsSystemAbstractNakedObjectSystemExceptionprotected TemplateImageLoader obtainTemplateImageLoader()
TemplateImageLoader configured in InstallerLookup, if available, else falls
back to that of the superclass.
obtainTemplateImageLoader in class NakedObjectsSystemAbstractpublic void setReflectorInstaller(NakedObjectReflectorInstaller reflectorInstaller)
protected NakedObjectReflector obtainReflector(DeploymentType deploymentType)
throws NakedObjectSystemException
obtainReflector in class NakedObjectsSystemAbstractNakedObjectSystemExceptionpublic void setServicesInstaller(ServicesInstaller servicesInstaller)
protected java.util.List<java.lang.Object> obtainServices()
obtainServices in class NakedObjectsSystemAbstractpublic void lookupAndSetUserProfileFactoryInstaller()
public void setUserProfileStoreInstaller(UserProfileStoreInstaller userProfilestoreInstaller)
protected UserProfileStore obtainUserProfileStore()
obtainUserProfileStore in class NakedObjectsSystemAbstractpublic void setPersistenceMechanismInstaller(PersistenceMechanismInstaller persistenceMechanismInstaller)
protected PersistenceSessionFactory obtainPersistenceSessionFactory(DeploymentType deploymentType)
throws NakedObjectSystemException
obtainPersistenceSessionFactory in class NakedObjectsSystemAbstractNakedObjectSystemException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||