org.apache.jackrabbit.core.config
Class VersioningConfig

java.lang.Object
  extended by org.apache.jackrabbit.core.config.VersioningConfig
All Implemented Interfaces:
FileSystemFactory

public class VersioningConfig
extends Object
implements FileSystemFactory

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, ISMLockingConfig ismLockingConfig)
          Creates a versioning configuration object.
 
Method Summary
 FileSystem getFileSystem()
          Creates and returns the configured versioning file system.
 File getHomeDir()
          Returns the versioning home directory.
 ISMLockingConfig getISMLockingConfig()
           
 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,
                        ISMLockingConfig ismLockingConfig)
Creates a versioning configuration object.

Parameters:
home - home directory
fsf - file system factory
pmc - persistence manager configuration
ismLockingConfig - the item state manager locking configuration, if null is passed a default configuration is used.
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

getISMLockingConfig

public ISMLockingConfig getISMLockingConfig()
Returns:
name of the ISM locking configuration


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