|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.runtime.installers.InstallerLookupDefault
public class InstallerLookupDefault
This class retrieves named Installers from those loaded at creation, updating the
NakedObjectConfiguration as it goes.
A list of possible classes are read in from the resource file installer-registry.properties. Each installer has a unique name (with respect to its type) that will be compared when one of this classes methods are called. These are instantiated when requested.
Note that it is possible to use an Installer implementation even if it has not been
registered in installer-registry.properties : just specify the Installer's fully qualified
class name.
| Field Summary | |
|---|---|
java.lang.String |
INSTALLER_REGISTRY_FILE
|
| Constructor Summary | |
|---|---|
InstallerLookupDefault(java.lang.Class<?> cls)
|
|
| Method Summary | ||
|---|---|---|
AuthenticationManagerInstaller |
authenticationManagerInstaller(java.lang.String requested,
boolean isProduction)
|
|
AuthorizationManagerInstaller |
authorizationManagerInstaller(java.lang.String requested,
boolean isProduction)
|
|
ClientConnectionInstaller |
clientConnectionInstaller(java.lang.String requested)
Client-side of remoting, specifying how to access the server. |
|
EmbeddedWebServerInstaller |
embeddedWebServerInstaller(java.lang.String requested)
|
|
FixturesInstaller |
fixturesInstaller(java.lang.String requested)
|
|
NakedObjectConfiguration |
getConfiguration()
Returns a snapshot of the current NakedObjectConfiguration. |
|
ConfigurationBuilder |
getConfigurationBuilder()
Injected. |
|
|
getInstaller(java.lang.Class<T> installerCls)
|
|
|
getInstaller(java.lang.Class<T> cls,
java.lang.String implName)
|
|
Installer |
getInstaller(java.lang.String implClassName)
|
|
Installer[] |
getInstallers(java.lang.Class<?> cls)
This method (and only this method) may be called prior to initialization. |
|
void |
init()
|
|
|
injectDependenciesInto(T candidate)
Injects self into candidate |
|
void |
injectInto(java.lang.Object candidate)
|
|
void |
mergeConfigurationFor(Installer installer)
|
|
PersistenceMechanismInstaller |
persistenceMechanismInstaller(java.lang.String requested,
DeploymentType deploymentType)
|
|
NakedObjectReflectorInstaller |
reflectorInstaller(java.lang.String requested)
|
|
ServicesInstaller |
servicesInstaller(java.lang.String requestedImplementationName)
|
|
void |
setConfigurationBuilder(ConfigurationBuilder configurationLoader)
|
|
void |
shutdown()
|
|
TemplateImageLoaderInstaller |
templateImageLoaderInstaller(java.lang.String requested)
|
|
UserProfileStoreInstaller |
userProfilePersistenceMechanismInstaller(java.lang.String requested,
DeploymentType deploymentType)
|
|
NakedObjectsViewerInstaller |
viewerInstaller(java.lang.String name)
|
|
NakedObjectsViewerInstaller |
viewerInstaller(java.lang.String name,
java.lang.String defaultName)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final java.lang.String INSTALLER_REGISTRY_FILE
| Constructor Detail |
|---|
public InstallerLookupDefault(java.lang.Class<?> cls)
| Method Detail |
|---|
public Installer[] getInstallers(java.lang.Class<?> cls)
initialization.
getInstallers in interface InstallerRepositorypublic void init()
init in interface ApplicationScopedComponentpublic void shutdown()
shutdown in interface ApplicationScopedComponent
public AuthenticationManagerInstaller authenticationManagerInstaller(java.lang.String requested,
boolean isProduction)
authenticationManagerInstaller in interface InstallerLookup
public AuthorizationManagerInstaller authorizationManagerInstaller(java.lang.String requested,
boolean isProduction)
authorizationManagerInstaller in interface InstallerLookuppublic FixturesInstaller fixturesInstaller(java.lang.String requested)
fixturesInstaller in interface InstallerLookuppublic TemplateImageLoaderInstaller templateImageLoaderInstaller(java.lang.String requested)
templateImageLoaderInstaller in interface InstallerLookup
public PersistenceMechanismInstaller persistenceMechanismInstaller(java.lang.String requested,
DeploymentType deploymentType)
persistenceMechanismInstaller in interface InstallerLookup
public UserProfileStoreInstaller userProfilePersistenceMechanismInstaller(java.lang.String requested,
DeploymentType deploymentType)
userProfilePersistenceMechanismInstaller in interface InstallerLookuppublic NakedObjectReflectorInstaller reflectorInstaller(java.lang.String requested)
reflectorInstaller in interface InstallerLookuppublic EmbeddedWebServerInstaller embeddedWebServerInstaller(java.lang.String requested)
embeddedWebServerInstaller in interface InstallerLookuppublic ClientConnectionInstaller clientConnectionInstaller(java.lang.String requested)
This lookup is called in three different contexts:
PersistenceMechanismInstaller (may be a ProxyPersistor)FacetDecoratorInstaller; adds in remoting facets.AuthenticationManagerInstaller.
In addition to the usual merging of any Installer
-specific configuration files, this lookup also merges in any
remote properties available.
clientConnectionInstaller in interface InstallerLookup
public NakedObjectsViewerInstaller viewerInstaller(java.lang.String name,
java.lang.String defaultName)
viewerInstaller in interface InstallerLookuppublic NakedObjectsViewerInstaller viewerInstaller(java.lang.String name)
viewerInstaller in interface InstallerLookuppublic ServicesInstaller servicesInstaller(java.lang.String requestedImplementationName)
servicesInstaller in interface InstallerLookup
public <T extends Installer> T getInstaller(java.lang.Class<T> cls,
java.lang.String implName)
getInstaller in interface InstallerLookuppublic Installer getInstaller(java.lang.String implClassName)
getInstaller in interface InstallerLookuppublic <T extends Installer> T getInstaller(java.lang.Class<T> installerCls)
getInstaller in interface InstallerLookuppublic NakedObjectConfiguration getConfiguration()
InstallerLookupNakedObjectConfiguration.
The NakedObjectConfiguration could subsequently be appended to if further Installers
are loaded.
getConfiguration in interface InstallerLookuppublic void mergeConfigurationFor(Installer installer)
public <T> T injectDependenciesInto(T candidate)
InstallerLookup
injectDependenciesInto in interface InstallerLookuppublic void injectInto(java.lang.Object candidate)
injectInto in interface Injectablepublic ConfigurationBuilder getConfigurationBuilder()
InstallerLookup
getConfigurationBuilder in interface InstallerLookuppublic void setConfigurationBuilder(ConfigurationBuilder configurationLoader)
setConfigurationBuilder in interface ConfigurationBuilderAware
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||