Class VersioningConfig
- java.lang.Object
-
- org.apache.jackrabbit.core.config.VersioningConfig
-
- All Implemented Interfaces:
FileSystemFactory
,ISMLockingFactory
public class VersioningConfig extends Object implements FileSystemFactory, ISMLockingFactory
Versioning configuration. This configuration class is used to create configured versioning objects.The contained configuration information are: the home directory, the file system implementation, and the persistence manager implementation.
- See Also:
RepositoryConfig.getVersioningConfig()
-
-
Constructor Summary
Constructors Constructor Description VersioningConfig(String home, FileSystemFactory fsf, PersistenceManagerConfig pmc, ISMLockingFactory ismLockingFactory)
Creates a versioning configuration object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileSystem
getFileSystem()
Creates and returns the configured versioning file system.File
getHomeDir()
Returns the versioning home directory.ISMLocking
getISMLocking()
Creates and returns the configured versioning locking strategy.PersistenceManagerConfig
getPersistenceManagerConfig()
Returns the versioning persistence manager configuration.
-
-
-
Constructor Detail
-
VersioningConfig
public VersioningConfig(String home, FileSystemFactory fsf, PersistenceManagerConfig pmc, ISMLockingFactory ismLockingFactory)
Creates a versioning configuration object.- Parameters:
home
- home directoryfsf
- file system factorypmc
- persistence manager configurationismLockingFactory
- the item state manager locking factory
-
-
Method Detail
-
getHomeDir
public File getHomeDir()
Returns the versioning home directory.- Returns:
- versioning home directory
-
getFileSystem
public FileSystem getFileSystem() throws RepositoryException
Creates and returns the configured versioning file system.- Specified by:
getFileSystem
in interfaceFileSystemFactory
- Returns:
- the configured
FileSystem
- Throws:
RepositoryException
- if the file system can not be created
-
getPersistenceManagerConfig
public PersistenceManagerConfig getPersistenceManagerConfig()
Returns the versioning persistence manager configuration.- Returns:
- persistence manager configuration
-
getISMLocking
public ISMLocking getISMLocking() throws RepositoryException
Creates and returns the configured versioning locking strategy.- Specified by:
getISMLocking
in interfaceISMLockingFactory
- Returns:
- the configured
ISMLocking
- Throws:
RepositoryException
- if the locking strategy can not be created
-
-