|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.runtime.session.NakedObjectSessionFactoryAbstract
public abstract class NakedObjectSessionFactoryAbstract
Creates an implementation of NakedObjectSessionFactory.openSession(AuthenticationSession) to create
an NakedObjectSession, but delegates to subclasses to actually obtain the components that make up
that NakedObjectSession.
The idea is that one subclass can use the InstallerLookup design to lookup installers for
components (and hence create the components themselves), whereas another subclass might simply use Spring
(or another DI container) to inject in the components according to some Spring-configured application
context.
| Constructor Summary | |
|---|---|
NakedObjectSessionFactoryAbstract(DeploymentType deploymentType,
NakedObjectConfiguration configuration,
SpecificationLoader specificationLoader,
TemplateImageLoader templateImageLoader,
AuthenticationManager authenticationManager,
AuthorizationManager authorizationManager,
UserProfileLoader userProfileLoader,
PersistenceSessionFactory persistenceSessionFactory,
java.util.List<java.lang.Object> serviceList)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NakedObjectSessionFactoryAbstract(DeploymentType deploymentType,
NakedObjectConfiguration configuration,
SpecificationLoader specificationLoader,
TemplateImageLoader templateImageLoader,
AuthenticationManager authenticationManager,
AuthorizationManager authorizationManager,
UserProfileLoader userProfileLoader,
PersistenceSessionFactory persistenceSessionFactory,
java.util.List<java.lang.Object> serviceList)
| Method Detail |
|---|
public void init()
initializes all.
init in interface ApplicationScopedComponentpublic void shutdown()
shutdown in interface ApplicationScopedComponentpublic NakedObjectSession openSession(AuthenticationSession authenticationSession)
NakedObjectSessionFactoryopens the NakedObjectSession.
openSession in interface NakedObjectSessionFactorypublic NakedObjectConfiguration getConfiguration()
NakedObjectSessionFactoryapplication-scoped NakedObjectConfiguration.
getConfiguration in interface NakedObjectSessionFactorypublic DeploymentType getDeploymentType()
NakedObjectSessionFactoryapplication-scoped DeploymentType.
getDeploymentType in interface NakedObjectSessionFactorypublic SpecificationLoader getSpecificationLoader()
NakedObjectSessionFactoryapplication-scoped SpecificationLoader.
getSpecificationLoader in interface NakedObjectSessionFactorypublic TemplateImageLoader getTemplateImageLoader()
NakedObjectSessionFactoryapplication-scoped TemplateImageLoader.
getTemplateImageLoader in interface NakedObjectSessionFactorypublic AuthenticationManager getAuthenticationManager()
NakedObjectSessionFactoryAuthenticationManager that will be used to authenticate and create
AuthenticationSessions within
the NakedObjectSession.
getAuthenticationManager in interface NakedObjectSessionFactorypublic AuthorizationManager getAuthorizationManager()
NakedObjectSessionFactoryAuthorizationManager that will be used to authorize access to domain objects.
getAuthorizationManager in interface NakedObjectSessionFactorypublic PersistenceSessionFactory getPersistenceSessionFactory()
NakedObjectSessionFactoryPersistenceSessionFactory that will be used to create PersistenceSession
within the NakedObjectSession.
getPersistenceSessionFactory in interface NakedObjectSessionFactorypublic UserProfileLoader getUserProfileLoader()
getUserProfileLoader in interface NakedObjectSessionFactorypublic java.util.List<java.lang.Object> getServices()
getServices in interface NakedObjectSessionFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||