|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.weborganic.bastille.flint.config.FlintConfig
public final class FlintConfig
Centralizes the configuration for flint.
Method Summary | |
---|---|
static File |
directory()
|
static IFlintConfig |
get()
Returns the flint configuration used by default. |
static IndexManager |
getManager()
|
static IndexMaster |
getMaster()
Returns the index master for a single index. |
static IndexMaster |
getMaster(String name)
Returns the Index master for the specified name. |
static List<IndexMaster> |
getMasters()
|
static IndexMaster |
getOrCreateMaster(File index)
|
static boolean |
hasMultiple()
Indicates whether flint is configured for multiple indexes. |
static Analyzer |
newAnalyzer()
Returns a new analyser form the specifies AnalyzerFactory or a new StandardAnalyser otherwise. |
static void |
setAnalyzerFactory(AnalyzerFactory factory)
Set the default analyzer factory. |
static void |
setup(IFlintConfig config)
Allows implementation to setup the Flint config and bypass the default auto setup. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void setup(IFlintConfig config)
This method can only be called once.
config
- The global configuration to use for Flint.
IllegalStateException
- if the setup method has already been called once.public static File directory()
public static boolean hasMultiple()
true
if Flint is configured for multiple indexes;
false
for a single index.public static IndexMaster getMaster()
public static IndexMaster getMaster(String name)
name
- the name of the index or null
for a single index.
public static IFlintConfig get()
public static void setAnalyzerFactory(AnalyzerFactory factory)
factory
- the AnalyzerFactory
to use as default.public static List<IndexMaster> getMasters()
public static Analyzer newAnalyzer()
This method always returns a value.
public static IndexManager getManager()
public static IndexMaster getOrCreateMaster(File index)
index
- The directory containing the index to return
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |