org.ow2.weblab.service.gate
Class GateConfiguratorService

java.lang.Object
  extended by org.ow2.weblab.service.gate.GateConfiguratorService
All Implemented Interfaces:
org.ow2.weblab.core.services.Configurable

public class GateConfiguratorService
extends java.lang.Object
implements org.ow2.weblab.core.services.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:

Author:
ymombrun
Date:
2010-08-31

Field Summary
static java.lang.String DEFAULT_SERVICE_URI
          The default service URI to be used.
static java.lang.String GAPP_FILE_PATH_PROPERTY
          The predicate of the configuration property
 
Constructor Summary
GateConfiguratorService()
          Default constructor, using DEFAULT_SERVICE_URI as serviceURI
GateConfiguratorService(java.lang.String serviceURI)
           
 
Method Summary
 org.ow2.weblab.core.services.configurable.ConfigureReturn configure(org.ow2.weblab.core.services.configurable.ConfigureArgs args)
           
 org.ow2.weblab.core.services.configurable.ResetConfigurationReturn resetConfiguration(org.ow2.weblab.core.services.configurable.ResetConfigurationArgs args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SERVICE_URI

public static final java.lang.String DEFAULT_SERVICE_URI
The default service URI to be used.

See Also:
Constant Field Values

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
Constructor Detail

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
Method Detail

configure

public org.ow2.weblab.core.services.configurable.ConfigureReturn configure(org.ow2.weblab.core.services.configurable.ConfigureArgs args)
                                                                    throws org.ow2.weblab.core.services.InvalidParameterException
Specified by:
configure in interface org.ow2.weblab.core.services.Configurable
Throws:
org.ow2.weblab.core.services.InvalidParameterException

resetConfiguration

public org.ow2.weblab.core.services.configurable.ResetConfigurationReturn resetConfiguration(org.ow2.weblab.core.services.configurable.ResetConfigurationArgs args)
                                                                                      throws org.ow2.weblab.core.services.InvalidParameterException
Specified by:
resetConfiguration in interface org.ow2.weblab.core.services.Configurable
Throws:
org.ow2.weblab.core.services.InvalidParameterException


Copyright © 2004-2012. All Rights Reserved.