|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.uima.resource.Resource_ImplBase
org.apache.uima.resource.ConfigurableResource_ImplBase
org.apache.uima.collection.CasInitializer_ImplBase
XmlDetagger for an example.
@Deprecated public abstract class CasInitializer_ImplBase
Base class for CAS Initializers, which developers should extend with their own CAS Initializer implementation classes.
| Field Summary |
|---|
| Fields inherited from interface org.apache.uima.resource.Resource |
|---|
PARAM_AGGREGATE_SOFA_MAPPINGS, PARAM_CONFIG_PARAM_SETTINGS, PARAM_PERFORMANCE_TUNING_SETTINGS, PARAM_RESOURCE_MANAGER, PARAM_UIMA_CONTEXT |
| Constructor Summary | |
|---|---|
CasInitializer_ImplBase()
Deprecated. |
|
| Method Summary | |
|---|---|
void |
destroy()
Deprecated. Releases all resources held by this Resource. |
ProcessingResourceMetaData |
getProcessingResourceMetaData()
Deprecated. Gets the metadata that describes this CasInitializer. |
void |
initialize()
Deprecated. This method is called during initialization, and does nothing by default. |
boolean |
initialize(ResourceSpecifier aSpecifier,
Map<String,Object> aAdditionalParams)
Deprecated. Called by the framework to initialize this CAS Initializer. |
void |
reconfigure()
Deprecated. Notifies this CAS Initializer that its configuration parameter settings have been changed. |
void |
typeSystemInit(TypeSystem arg0)
Deprecated. Informs this CasInitializer that the CAS TypeSystem has changed. |
| Methods inherited from class org.apache.uima.resource.ConfigurableResource_ImplBase |
|---|
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValue |
| Methods inherited from class org.apache.uima.resource.Resource_ImplBase |
|---|
getCasManager, getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger, setMetaData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.uima.collection.CasInitializer |
|---|
initializeCas |
| Methods inherited from interface org.apache.uima.resource.ConfigurableResource |
|---|
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValue |
| Methods inherited from interface org.apache.uima.resource.Resource |
|---|
getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger |
| Constructor Detail |
|---|
public CasInitializer_ImplBase()
| Method Detail |
|---|
public boolean initialize(ResourceSpecifier aSpecifier,
Map<String,Object> aAdditionalParams)
throws ResourceInitializationException
initialize() method and access
metadata via the getProcessingResourceMetaData() method. This method is non-final only
for legacy reasons.
initialize in interface Resourceinitialize in class Resource_ImplBaseaSpecifier - specifies how to create a resource or locate an existing resource service.aAdditionalParams - a Map containing additional parameters. May be null if there are no
parameters. Each class that implements this interface can decide what additional
parameters it supports.
ResourceSpecifier is not of an appropriate type for this Resource. If
the ResourceSpecifier is of an appropriate type but is invalid or if
some other failure occurs, an exception should be thrown.
ResourceInitializationException - if a failure occurs during initialization.Resource.initialize(org.apache.uima.resource.ResourceSpecifier,
java.util.Map)
public void initialize()
throws ResourceInitializationException
ResourceInitializationException - if a failure occurs during initialization.public void destroy()
ResourceResource.
destroy in interface Resourcedestroy in class Resource_ImplBaseResource.destroy()
public void typeSystemInit(TypeSystem arg0)
throws ResourceInitializationException
CasInitializer
In this method, the CasInitializer should use the TypeSystem to resolve the names of
Type and Features to the actual Type and
Feature objects, which can then be used during processing.
typeSystemInit in interface CasInitializerResourceInitializationException - if the type system is not compatible with this CAS InitializerCasObjectProcessor.typeSystemInit(org.apache.uima.cas.TypeSystem)public ProcessingResourceMetaData getProcessingResourceMetaData()
CasInitializerCasInitializer.
getProcessingResourceMetaData in interface CasInitializerCasProcessor.getProcessingResourceMetaData()
public void reconfigure()
throws ResourceConfigurationException
destroy() followed by initialize(). CAS
Initializers that have expensive initialization that does not need to be redone whenever
configuration parameters change may wish to override this method to provide a more efficient
implementation.
reconfigure in interface ConfigurableResourcereconfigure in class ConfigurableResource_ImplBaseResourceConfigurationException - if the configuration is not validConfigurableResource_ImplBase.reconfigure()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||