public class StorageContainer
extends java.lang.Object
A Storage class describes one or more data sources such as a database / xml file.
This class manages that Storage and provides methods to load and access a Storage class, including Spring loading.
| Constructor and Description |
|---|
StorageContainer(java.lang.String definitionResourceName,
IExecContext execContext)
Create the Storage definition.
|
StorageContainer(java.lang.String definitionResourceName,
java.lang.String propertiesFileName)
Create the Storage definition.
|
StorageContainer(java.net.URL definitionResource,
IExecContext execContext)
Create the Storage definition.
|
StorageContainer(java.net.URL definitionResource,
java.util.Properties properties)
Create the Storage definition.
|
StorageContainer(java.net.URL definitionResource,
java.net.URL propertiesResource)
Create the Storage definition.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDefinitionResourceName() |
Storage |
getStorage() |
void |
setDefinitionResourceName(java.lang.String definitionResourceName) |
void |
setStorage(Storage storage) |
public StorageContainer(java.net.URL definitionResource,
IExecContext execContext)
throws java.lang.Exception
Loads the definition and creates the Storage classes.
definitionResource - the Definition Resource Name. The resource must be in the
classpath.execContext - the pre=populated map containing the actions required for the
Storage construction.java.lang.Exceptionpublic StorageContainer(java.lang.String definitionResourceName,
IExecContext execContext)
throws java.lang.Exception
Loads the definition and creates the Storage classes.
definitionResourceName - the Definition Resource Name. The resource must be in the
classpath.execContext - the pre=populated map containing the actions required for the
Storage construction.java.lang.Exceptionpublic StorageContainer(java.lang.String definitionResourceName,
java.lang.String propertiesFileName)
throws java.lang.Exception
Loads the definition and creates the Storage classes.
definitionResourceName - the Definition Resource Name. The resource must be in the
classpath.propertiesFileName - the properties used to create a map containing the actions
required for the Storage construction.java.lang.Exceptionpublic StorageContainer(java.net.URL definitionResource,
java.net.URL propertiesResource)
throws java.lang.Exception
Loads the definition and creates the Storage classes.
definitionResource - the Definition Resource Name. The resource must be in the
classpath.propertiesResource - the properties used to create a map containing the actions
required for the Storage construction.java.lang.Exceptionpublic StorageContainer(java.net.URL definitionResource,
java.util.Properties properties)
throws java.lang.Exception
Loads the definition and creates the Storage classes.
definitionResource - the Definition Resource Name. The resource must be in the
classpath.properties - the properties used to create a map containing the actions
required for the Storage construction.java.lang.Exception