|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.weblab.service.gate.Configuration
public final class Configuration
This class is a singleton to be used to let the configurable and the analyser service communicate. It holds the mapping between usageContext and gapp file path, and also usageContext and corpuscontroller.
| Method Summary | |
|---|---|
gate.CorpusController |
getController(java.lang.String usageContext)
|
java.lang.String |
getGappFilePath(java.lang.String usageContext)
|
static Configuration |
getInstance()
|
void |
resetConfiguration()
Removes every mappings in this object ; moreover it deletes the singleton. |
void |
resetConfiguration(java.lang.String usageContext)
Remove entries in the two map that where associated with this usageContext. |
void |
setController(java.lang.String usageContext,
gate.CorpusController pipeline)
|
void |
setGateApplicationStateFileName(java.lang.String usageContext,
java.lang.String filePath)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Configuration getInstance()
public java.lang.String getGappFilePath(java.lang.String usageContext)
usageContext - The usageContext that shall not be null.
public void setGateApplicationStateFileName(java.lang.String usageContext,
java.lang.String filePath)
usageContext - The usageContext tha shall not be nullfilePath - The gapp file pathpublic gate.CorpusController getController(java.lang.String usageContext)
usageContext - The usageContext that shall not be null
public void setController(java.lang.String usageContext,
gate.CorpusController pipeline)
usageContext - The usageContext that shall not be nullpipeline - The controllerpublic void resetConfiguration(java.lang.String usageContext)
usageContext - The usageContext that shall not be nullpublic void resetConfiguration()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||