org.ow2.weblab.service.gate
Class GateConfiguratorService
java.lang.Object
org.ow2.weblab.service.gate.GateConfiguratorService
- All Implemented Interfaces:
- org.weblab_project.services.configurable.Configurable
public class GateConfiguratorService
- extends java.lang.Object
- implements org.weblab_project.services.configurable.Configurable
The configurable part of the Gate service.
It enables to defines the path to the gapp file that has to be used to create a Gate pipeline for the given
usageContext.
To do this you have to call the configure method using a PieceOfKnowledge that contains the following RDF statement:
- Subject: the URI of the service (default value is DEFAULT_SERVICE_URI)
- Predicate: GAPP_FILE_PATH_PROPERTY
- Object: A Literal String containing the (absolute) path to the gapp file to be used.
- Author:
- ymombrun
- Date:
- 2010-08-31
|
Method Summary |
org.weblab_project.services.configurable.types.ConfigureReturn |
configure(org.weblab_project.services.configurable.types.ConfigureArgs args)
|
org.weblab_project.services.configurable.types.ResetConfigurationReturn |
resetConfiguration(org.weblab_project.services.configurable.types.ResetConfigurationArgs args)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_SERVICE_URI
public static java.lang.String DEFAULT_SERVICE_URI
- The default service URI to be used.
GAPP_FILE_PATH_PROPERTY
public static final java.lang.String GAPP_FILE_PATH_PROPERTY
- The predicate of the configuration property
- See Also:
- Constant Field Values
GateConfiguratorService
public GateConfiguratorService()
- Default constructor, using DEFAULT_SERVICE_URI as serviceURI
GateConfiguratorService
public GateConfiguratorService(java.lang.String serviceURI)
- Parameters:
serviceURI - The serviceURI to be set
configure
public org.weblab_project.services.configurable.types.ConfigureReturn configure(org.weblab_project.services.configurable.types.ConfigureArgs args)
throws org.weblab_project.services.configurable.ConfigureException
- Specified by:
configure in interface org.weblab_project.services.configurable.Configurable
- Throws:
org.weblab_project.services.configurable.ConfigureException
resetConfiguration
public org.weblab_project.services.configurable.types.ResetConfigurationReturn resetConfiguration(org.weblab_project.services.configurable.types.ResetConfigurationArgs args)
throws org.weblab_project.services.configurable.ResetConfigurationException
- Specified by:
resetConfiguration in interface org.weblab_project.services.configurable.Configurable
- Throws:
org.weblab_project.services.configurable.ResetConfigurationException
Copyright © 2004-2010. All Rights Reserved.