public class VersioningConfig extends Object implements org.apache.jackrabbit.core.fs.FileSystemFactory, ISMLockingFactory
The contained configuration information are: the home directory, the file system implementation, and the persistence manager implementation.
RepositoryConfig.getVersioningConfig()| Constructor and Description |
|---|
VersioningConfig(String home,
org.apache.jackrabbit.core.fs.FileSystemFactory fsf,
PersistenceManagerConfig pmc,
ISMLockingFactory ismLockingFactory)
Creates a versioning configuration object.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.jackrabbit.core.fs.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.
|
public VersioningConfig(String home, org.apache.jackrabbit.core.fs.FileSystemFactory fsf, PersistenceManagerConfig pmc, ISMLockingFactory ismLockingFactory)
home - home directoryfsf - file system factorypmc - persistence manager configurationismLockingFactory - the item state manager locking factorypublic File getHomeDir()
public org.apache.jackrabbit.core.fs.FileSystem getFileSystem()
throws RepositoryException
getFileSystem in interface org.apache.jackrabbit.core.fs.FileSystemFactoryFileSystemRepositoryException - if the file system can not be createdpublic PersistenceManagerConfig getPersistenceManagerConfig()
public ISMLocking getISMLocking() throws RepositoryException
getISMLocking in interface ISMLockingFactoryISMLockingRepositoryException - if the locking strategy can not be createdCopyright © 2004–2018 The Apache Software Foundation. All rights reserved.