org.apache.jackrabbit.core.config
Class VersioningConfig

java.lang.Object
  extended by 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
VersioningConfig(String home, FileSystemFactory fsf, PersistenceManagerConfig pmc, ISMLockingFactory ismLockingFactory)
          Creates a versioning configuration object.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersioningConfig

public VersioningConfig(String home,
                        FileSystemFactory fsf,
                        PersistenceManagerConfig pmc,
                        ISMLockingFactory ismLockingFactory)
Creates a versioning configuration object.

Parameters:
home - home directory
fsf - file system factory
pmc - persistence manager configuration
ismLockingFactory - 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 interface FileSystemFactory
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 interface ISMLockingFactory
Returns:
the configured ISMLocking
Throws:
RepositoryException - if the locking strategy can not be created


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.