public abstract class Storages
extends java.lang.Object
Storage
s.Constructor and Description |
---|
Storages() |
Modifier and Type | Method and Description |
---|---|
static <T,S extends Storage<T>> |
createStorage(java.lang.Class<? extends S> storageClass,
java.lang.Class<T> storedObjectsClass,
java.util.Map<java.lang.String,?> parameters)
Creates a storage using factory method.
|
static <T> Storage<T> |
createStorageClassParameter(java.lang.Class<T> storedObjectsClass,
java.util.Map<java.lang.String,?> parameters,
java.lang.String storageClassParamName)
Creates a storage using factory method.
|
static <T,S extends Storage<T>> |
createStorageClassParameter(java.lang.Class<T> storedObjectsClass,
java.util.Map<java.lang.String,?> parameters,
java.lang.String storageClassParamName,
java.lang.Class<? extends S> storageClassToCheck)
Creates a storage using factory method.
|
public static <T,S extends Storage<T>> S createStorage(java.lang.Class<? extends S> storageClass, java.lang.Class<T> storedObjectsClass, java.util.Map<java.lang.String,?> parameters) throws java.lang.IllegalArgumentException, java.lang.ClassNotFoundException
public static AStorageType create(Class storedObjectsClass, Map<String, Object> parameters)The parameters map is filled with storage-specific instantiation values.
T
- the class of objects that the new storage will work withS
- the class of the storage to createstorageClass
- the class of the storage to createstoredObjectsClass
- the class of objects that the new storage will work withparameters
- list of named parameters for the storage to createjava.lang.IllegalArgumentException
- if the parameters specified are invalid (non existent directory, null values, etc.)java.lang.ClassNotFoundException
- if the parameter class could not be resolved or is not a descendant of LocalAbstractObjectpublic static <T,S extends Storage<T>> S createStorageClassParameter(java.lang.Class<T> storedObjectsClass, java.util.Map<java.lang.String,?> parameters, java.lang.String storageClassParamName, java.lang.Class<? extends S> storageClassToCheck) throws java.lang.IllegalArgumentException, java.lang.ClassNotFoundException
public static AStorageType create(Class storedObjectsClass, Map<String, Object> parameters)The parameters map is filled with storage-specific instantiation values.
T
- the class of objects that the new storage will work withS
- the class of the storage to createstoredObjectsClass
- the class of objects that the new storage will work withparameters
- list of named parameters for the storage to create, it must contain at least
the storageClass
parameter that specifies the storage class to createstorageClassParamName
- the name of the parameter where the storage class is storedstorageClassToCheck
- the super-class of the storage to create (i.e. Storage
)java.lang.IllegalArgumentException
- if the parameters specified are invalid (non existent directory, null values, etc.)java.lang.ClassNotFoundException
- if the parameter class could not be resolved or is not a descendant of LocalAbstractObjectpublic static <T> Storage<T> createStorageClassParameter(java.lang.Class<T> storedObjectsClass, java.util.Map<java.lang.String,?> parameters, java.lang.String storageClassParamName) throws java.lang.IllegalArgumentException, java.lang.ClassNotFoundException
public static AStorageType create(Class storedObjectsClass, Map<String, Object> parameters)The parameters map is filled with storage-specific instantiation values.
T
- the class of objects that the new storage will work withstoredObjectsClass
- the class of objects that the new storage will work withparameters
- list of named parameters for the storage to create, it must contain at least
the storageClass
parameter that specifies the storage class to createstorageClassParamName
- the name of the parameter where the storage class is storedjava.lang.IllegalArgumentException
- if the parameters specified are invalid (non existent directory, null values, etc.)java.lang.ClassNotFoundException
- if the parameter class could not be resolved or is not a descendant of LocalAbstractObject