org.apache.jackrabbit.core.config
Class SearchConfig

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

public class SearchConfig
extends BeanConfig
implements FileSystemFactory

Search index configuration. This bean configuration class is used to create configured search index objects.

In addition to generic bean configuration information, this class also contains an optional file system configuration used by the search index.

See Also:
WorkspaceConfig#getSearchConfig()

Constructor Summary
SearchConfig(String className, Properties properties, FileSystemFactory fsf)
          Creates a search index configuration object.
 
Method Summary
 FileSystem getFileSystem()
          Creates and returns the configured search file system, or returns null if a search file system has not been configured.
 
Methods inherited from class org.apache.jackrabbit.core.config.BeanConfig
getClassLoader, getClassName, getDefaultClassLoader, getParameters, newInstance, setClassLoader, setConnectionFactory, setDefaultClassLoader, setValidate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchConfig

public SearchConfig(String className,
                    Properties properties,
                    FileSystemFactory fsf)
Creates a search index configuration object.

Parameters:
className - search index implementation class
properties - search index properties
fsf - configured search index file system factory, or null
Method Detail

getFileSystem

public FileSystem getFileSystem()
                         throws RepositoryException
Creates and returns the configured search file system, or returns null if a search file system has not been configured.

Specified by:
getFileSystem in interface FileSystemFactory
Returns:
the configured FileSystem, or null
Throws:
RepositoryException - if the file system can not be created


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