|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.runtime.installers.InstallerAbstract
public abstract class InstallerAbstract
| Constructor Summary | |
|---|---|
InstallerAbstract(java.lang.String type,
java.lang.String name)
Subclasses should pass in the type defined as a constant in the subinterface of Installer. |
|
| Method Summary | |
|---|---|
protected void |
addConfigurationResources(java.util.List<java.lang.String> configurationResources)
Optional hook method to allow subclasses to specify any additional config resources. |
NakedObjectConfiguration |
getConfiguration()
Returns a snapshot of the current configuration provided by the injected
ConfigurationBuilder. |
java.util.List<java.lang.String> |
getConfigurationResources()
Returns [type.properties, type_name.properties. |
java.lang.String |
getName()
|
java.lang.String |
getType()
|
void |
init()
Default implementation does nothing. |
void |
setConfiguration(NakedObjectConfiguration configuration)
Either this method or setConfigurationBuilder(ConfigurationBuilder) should be called
prior to calling getConfiguration(). |
void |
setConfigurationBuilder(ConfigurationBuilder configurationBuilder)
Either this method or setConfiguration(NakedObjectConfiguration)
should be called prior to calling getConfiguration(). |
void |
shutdown()
Default implementation does nothing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InstallerAbstract(java.lang.String type,
java.lang.String name)
For example, PersistenceMechanismInstaller has a constant
PersistenceMechanismInstaller.TYPE. Any implementation of
PersistenceMechanismInstaller should pass this constant value up
to this constructor.
| Method Detail |
|---|
public java.lang.String getType()
getType in interface Installerpublic java.lang.String getName()
getName in interface Installerpublic java.util.List<java.lang.String> getConfigurationResources()
For example, [persistor.properties, persistor_in-memory.properties].
getConfigurationResources in interface InstallergetType(),
getName()protected void addConfigurationResources(java.util.List<java.lang.String> configurationResources)
public void init()
init in interface ApplicationScopedComponentpublic void shutdown()
shutdown in interface ApplicationScopedComponentpublic void setConfigurationBuilder(ConfigurationBuilder configurationBuilder)
setConfiguration(NakedObjectConfiguration)
should be called prior to calling getConfiguration().
If a configuration
has already been provided, then throws IllegalStateException.
setConfigurationBuilder in interface ConfigurationBuilderAwarepublic void setConfiguration(NakedObjectConfiguration configuration)
setConfigurationBuilder(ConfigurationBuilder) should be called
prior to calling getConfiguration().
If a configuration
builder has already been provided, then throws
IllegalStateException.
public NakedObjectConfiguration getConfiguration()
injected
ConfigurationBuilder.
Implementation note: the implementation is in fact just
InstallerLookupDefault.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||