public final class ResourceConfiguration extends Object
Holds the settings for a resource which acts as a base for session that can not change. This includes all
settings which are persistent. Each ResourceConfiguration
is furthermore bound to one fixed
database denoted by a related StorageConfiguration
.
Modifier and Type | Class and Description |
---|---|
static interface |
ResourceConfiguration.IResourceConfigurationFactory
Factory for generating an
ResourceConfiguration -instance. |
static class |
ResourceConfiguration.Paths
Paths for a
Session . |
Modifier and Type | Field and Description |
---|---|
IBackend |
mBackend
Type of Storage (File, Berkeley).
|
IDataFactory |
mDataFac
Data Factory for deserializing data.
|
IMetaEntryFactory |
mMetaFac
MetaEntry Factory for deserializing meta-entries.
|
Properties |
mProperties
Path for the resource to be associated.
|
IRevisioning |
mRevision
Kind of revisioning (Incremental, Differential).
|
Constructor and Description |
---|
ResourceConfiguration(Properties pProperties,
IBackend.IBackendFactory pBackend,
IRevisioning pRevision,
IDataFactory pDataFac,
IMetaEntryFactory pMetaFac)
Convenience constructor using the standard settings.
|
ResourceConfiguration(Properties pProperties,
IBackend pStorage,
IRevisioning pRevisioning,
IDataFactory pDataFac,
IMetaEntryFactory pMetaFac)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static ResourceConfiguration |
deserialize(File pFile,
String pResource)
Deserializing a Resourceconfiguration out of a JSON-file from the persistent storage.
|
boolean |
equals(Object pObj) |
int |
hashCode() |
static void |
serialize(ResourceConfiguration pConfig) |
String |
toString() |
public final IBackend mBackend
public final IRevisioning mRevision
public final Properties mProperties
public final IDataFactory mDataFac
public final IMetaEntryFactory mMetaFac
@Inject public ResourceConfiguration(Properties pProperties, IBackend.IBackendFactory pBackend, IRevisioning pRevision, IDataFactory pDataFac, IMetaEntryFactory pMetaFac)
pProperties
- pBackend
- pRevision
- pDataFac
- public ResourceConfiguration(Properties pProperties, IBackend pStorage, IRevisioning pRevisioning, IDataFactory pDataFac, IMetaEntryFactory pMetaFac)
pProperties
- pStorage
- pRevisioning
- pDataFac
- pMetaFac
- public static void serialize(ResourceConfiguration pConfig) throws TTIOException
TTIOException
public static ResourceConfiguration deserialize(File pFile, String pResource) throws TTIOException
pFile
- where the resource lies in.ResourceConfiguration
instance.TTIOException
Copyright © 2013. All Rights Reserved.