|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.weborganic.bastille.flint.config.BaseDefaultConfig org.weborganic.bastille.flint.config.ComplexConfig
public final class ComplexConfig
A configuration for multiple indexes which uses templates depending on the index.
This configuration is suitable for when:
[WEB-INF]/index
directory[WEB-INF]/ixml/default.xsl
is used.
Method Summary | |
---|---|
IndexConfig |
getIndexConfig(String name)
|
List<File> |
getTemplates()
|
static ComplexConfig |
newInstance()
Returns a new legacy config instance loading the setting from the global settings. |
void |
reload()
Causes the config to be reloaded. |
File |
toFile(Document doc)
Returns the file corresponding to the specified document. |
String |
toPath(File f)
Returns the value of the path field for the specified file. |
Methods inherited from class org.weborganic.bastille.flint.config.BaseDefaultConfig |
---|
getDefaultConfig, getDirectory, getIndexNames, getTemplatesDirectory, hasMultiple |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.weborganic.bastille.flint.config.IFlintConfig |
---|
getDirectory, getIndexNames, hasMultiple |
Method Detail |
---|
public void reload()
IFlintConfig
reload
in interface IFlintConfig
public final List<File> getTemplates()
getTemplates
in interface IFlintConfig
public IndexConfig getIndexConfig(String name)
getIndexConfig
in interface IFlintConfig
name
- The name of the index
public String toPath(File f)
IFlintConfig
toPath
in interface IFlintConfig
f
- for the specified file.
public File toFile(Document doc)
IFlintConfig
This method is used to determine whether changes in some files require reindexing and is typically used by the indexing process.
toFile
in interface IFlintConfig
doc
- The Lucene document
public static ComplexConfig newInstance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |