Class SearchConfig
- java.lang.Object
-
- org.apache.jackrabbit.core.config.BeanConfig
-
- 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.
-
-
Constructor Summary
Constructors Constructor Description SearchConfig(String className, Properties properties, FileSystemFactory fsf)
Creates a search index configuration object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileSystem
getFileSystem()
Creates and returns the configured search file system, or returnsnull
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, setInstanceFactory, setValidate
-
-
-
-
Constructor Detail
-
SearchConfig
public SearchConfig(String className, Properties properties, FileSystemFactory fsf)
Creates a search index configuration object.- Parameters:
className
- search index implementation classproperties
- search index propertiesfsf
- configured search index file system factory, ornull
-
-
Method Detail
-
getFileSystem
public FileSystem getFileSystem() throws RepositoryException
Creates and returns the configured search file system, or returnsnull
if a search file system has not been configured.- Specified by:
getFileSystem
in interfaceFileSystemFactory
- Returns:
- the configured
FileSystem
, ornull
- Throws:
RepositoryException
- if the file system can not be created
-
-