|
||||||||||
| 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 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 | |
|---|---|
void |
configure(java.lang.String usageContext,
java.lang.String gappFilePath)
|
gate.CorpusController |
getController(java.lang.String gappFilePath)
|
java.lang.String |
getGappFilePathForUsageContext(java.lang.String usageContext)
|
static Configuration |
getInstance()
|
boolean |
isConfigured(java.lang.String usageContext)
|
boolean |
isControllerInitialised(java.lang.String gappFilePath)
|
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 |
setControllerForUsageContextAndGapp(java.lang.String usageContext,
gate.CorpusController pipeline)
|
void |
setGappFileForUsageContext(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 void configure(java.lang.String usageContext,
java.lang.String gappFilePath)
usageContext - The usageContext to be used as key. May be empty but not null.gappFilePath - The gappFile to be mapped with the usageContext. Shall not be null.public void resetConfiguration()
public boolean isConfigured(java.lang.String usageContext)
usageContext - The usageContext to be used as key. May be empty but not null.
public boolean isControllerInitialised(java.lang.String gappFilePath)
gappFilePath - The gappFilePath to be used as key.
public gate.CorpusController getController(java.lang.String gappFilePath)
gappFilePath - The gappFilePath to be used as key.
public java.lang.String getGappFilePathForUsageContext(java.lang.String usageContext)
usageContext - The usageContext to be used as key. May be empty but not null.
public void setGappFileForUsageContext(java.lang.String usageContext,
java.lang.String filePath)
usageContext - The usageContext to be used as key. May be empty but not null.filePath - The gapp file path
public void setControllerForUsageContextAndGapp(java.lang.String usageContext,
gate.CorpusController pipeline)
usageContext - The usageContext to be used as key. May be empty but not null.pipeline - The controllerpublic void resetConfiguration(java.lang.String usageContext)
usageContext - The usageContext that shall not be null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||