public interface CustomResourceSpecifier extends ResourceSpecifier
ResourceSpecifier
that specifically names the
Java class that should be created. This allows users to plug in their own
custom resource implementations.Modifier and Type | Method and Description |
---|---|
Parameter[] |
getParameters()
Gets parameters that may be read by the custom resource class when it is initialized.
|
String |
getResourceClassName()
Retrieves the name of the Java class that will be instantiated when
one of the
UIMAFramework.produceXXX(ResourceSpecifier,...) methods is called
with this resource specifier. |
void |
setParameters(Parameter[] parameters)
Sets parameters that may be read by the custom resource class when it is initialized.
|
void |
setResourceClassName(String aResourceClassName)
Setss the name of the Java class that will be instantiated when
one of the
UIMAFramework.produceXXX(ResourceSpecifier,...) methods is called
with this resource specifier. |
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML
String getResourceClassName()
UIMAFramework.produceXXX(ResourceSpecifier,...)
methods is called
with this resource specifier.Resource
.void setResourceClassName(String aResourceClassName)
UIMAFramework.produceXXX(ResourceSpecifier,...)
methods is called
with this resource specifier.aResourceClassName
- a fully-qualified Java class name. The named class should implement Resource
.Parameter[] getParameters()
null
.void setParameters(Parameter[] parameters)
parameters
- the Parameters to set.Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.