org.nakedobjects.remoting.client
Class ProxyInstallerAbstract

java.lang.Object
  extended by org.nakedobjects.runtime.installers.InstallerAbstract
      extended by org.nakedobjects.runtime.persistence.PersistenceMechanismInstallerAbstract
          extended by org.nakedobjects.remoting.client.ProxyInstallerAbstract
All Implemented Interfaces:
ApplicationScopedComponent, Component, Installer, ConfigurationBuilderAware, FacetDecoratorInstaller, AuthenticationManagerInstaller, AuthorizationManagerInstaller, InstallerLookupAware, PersistenceMechanismInstaller, PersistenceSessionFactoryDelegate, ClientConnectionInstaller
Direct Known Subclasses:
EncodingOverSocketsProxyInstaller, SerializingOverSocketsProxyInstaller

public abstract class ProxyInstallerAbstract
extends PersistenceMechanismInstallerAbstract
implements ClientConnectionInstaller


Field Summary
 
Fields inherited from interface org.nakedobjects.runtime.remoting.ClientConnectionInstaller
TYPE
 
Constructor Summary
ProxyInstallerAbstract(java.lang.String name)
           
 
Method Summary
 AuthenticationManager createAuthenticationManager()
           
 AuthorizationManager createAuthorizationManager()
           
 java.util.List<FacetDecorator> createDecorators()
           
protected abstract  ClientMarshaller createMarshaller(Transport transport)
          Mandatory hook method.
protected  PersistenceSession createPersistenceSession(PersistenceSessionFactory persistenceSessionFactory, AdapterManagerExtended adapterManager, AdapterFactory adapterFactory, ObjectFactory objectFactory, OidGenerator oidGenerator, ServicesInjector servicesInjector)
           
 PersistenceSessionFactory createPersistenceSessionFactory(DeploymentType deploymentType)
           
protected  ServerFacade createServerFacade()
          Creates the getServerFacade() as required.
protected  NakedObjectTransactionManager createTransactionManager(NakedObjectConfiguration configuration, AdapterManagerProxy adapterManager, PersistenceSessionTransactionManagement transactionManagement)
          Creates the NakedObjectTransactionManager, potentially overriddable.
protected abstract  Transport createTransport()
          Mandatory hook method.
protected  ObjectEncoderDecoder getEncoderDecoder()
          Lazily creates (so that InstallerAbstract.getConfiguration() is available).
 
Methods inherited from class org.nakedobjects.runtime.persistence.PersistenceMechanismInstallerAbstract
createAdapterFactory, createAdapterManager, createContainer, createObjectFactory, createOidGenerator, createPersistenceSession, createRuntimeContext, createServicesInjector, getInstallerLookup, setInstallerLookup
 
Methods inherited from class org.nakedobjects.runtime.installers.InstallerAbstract
addConfigurationResources, getConfiguration, getConfigurationResources, getName, getType, init, setConfiguration, setConfigurationBuilder, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nakedobjects.runtime.persistence.PersistenceSessionFactoryDelegate
createPersistenceSession
 
Methods inherited from interface org.nakedobjects.metamodel.commons.component.Installer
getConfigurationResources, getName, getType
 
Methods inherited from interface org.nakedobjects.metamodel.commons.component.ApplicationScopedComponent
init, shutdown
 

Constructor Detail

ProxyInstallerAbstract

public ProxyInstallerAbstract(java.lang.String name)
Method Detail

getEncoderDecoder

protected ObjectEncoderDecoder getEncoderDecoder()
Lazily creates (so that InstallerAbstract.getConfiguration() is available).


createServerFacade

protected ServerFacade createServerFacade()
Creates the getServerFacade() as required.

Overridable, but default implementation calls the createTransport() and createMarshaller(Transport) hooks.


createTransport

protected abstract Transport createTransport()
Mandatory hook method.


createMarshaller

protected abstract ClientMarshaller createMarshaller(Transport transport)
Mandatory hook method.


createAuthenticationManager

public AuthenticationManager createAuthenticationManager()
Specified by:
createAuthenticationManager in interface AuthenticationManagerInstaller

createAuthorizationManager

public AuthorizationManager createAuthorizationManager()
Specified by:
createAuthorizationManager in interface AuthorizationManagerInstaller

createPersistenceSessionFactory

public PersistenceSessionFactory createPersistenceSessionFactory(DeploymentType deploymentType)
Specified by:
createPersistenceSessionFactory in interface PersistenceMechanismInstaller

createPersistenceSession

protected PersistenceSession createPersistenceSession(PersistenceSessionFactory persistenceSessionFactory,
                                                      AdapterManagerExtended adapterManager,
                                                      AdapterFactory adapterFactory,
                                                      ObjectFactory objectFactory,
                                                      OidGenerator oidGenerator,
                                                      ServicesInjector servicesInjector)
Specified by:
createPersistenceSession in class PersistenceMechanismInstallerAbstract

createTransactionManager

protected NakedObjectTransactionManager createTransactionManager(NakedObjectConfiguration configuration,
                                                                 AdapterManagerProxy adapterManager,
                                                                 PersistenceSessionTransactionManagement transactionManagement)
Creates the NakedObjectTransactionManager, potentially overriddable.

Called from PersistenceMechanismInstallerAbstract.createPersistenceSession(PersistenceSessionFactory).


createDecorators

public java.util.List<FacetDecorator> createDecorators()
Specified by:
createDecorators in interface FacetDecoratorInstaller


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.