Class TypePrioritiesFactory
java.lang.Object
org.apache.uima.fit.factory.TypePrioritiesFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic TypePrioritiesCreates aTypePrioritiesfrom all type priorities descriptions that can be found via the pattern specified in the system propertyorg.apache.uima.fit.typepriorities.import_patternor via theMETA-INF/org.apache.uima.fit/typepriorities.txtfiles in the classpath.static TypePrioritiescreateTypePriorities(Class<? extends TOP>... prioritizedTypes) Create a TypePriorities given a sequence of ordered type classesstatic TypePrioritiescreateTypePriorities(String... prioritizedTypeNames) Create aTypePrioritiesgiven a sequence of ordered type namesstatic voidForce rescan of type priorities descriptors.static String[]Get all currently accessible type priorities descriptor locations.
-
Method Details
-
createTypePriorities
@SafeVarargs public static TypePriorities createTypePriorities(Class<? extends TOP>... prioritizedTypes) Create a TypePriorities given a sequence of ordered type classes- Parameters:
prioritizedTypes- a sequence of ordered type classes- Returns:
- type priorities created from the ordered JCas classes
-
createTypePriorities
Create aTypePrioritiesgiven a sequence of ordered type names- Parameters:
prioritizedTypeNames- a sequence of ordered type names- Returns:
- type priorities created from the ordered type names
-
createTypePriorities
Creates aTypePrioritiesfrom all type priorities descriptions that can be found via the pattern specified in the system propertyorg.apache.uima.fit.typepriorities.import_patternor via theMETA-INF/org.apache.uima.fit/typepriorities.txtfiles in the classpath.- Returns:
- the auto-scanned type priorities.
- Throws:
ResourceInitializationException- if the collected type priorities cannot be merged.
-
scanTypePrioritiesDescriptors
Get all currently accessible type priorities descriptor locations. A scan is actually only performed on the first call and the locations are cached. To force a re-scan useforceTypePrioritiesDescriptorsScan().- Returns:
- an array of locations.
- Throws:
ResourceInitializationException- if the locations could not be resolved.
-
forceTypePrioritiesDescriptorsScan
public static void forceTypePrioritiesDescriptorsScan()Force rescan of type priorities descriptors. The next call toscanTypePrioritiesDescriptors()will rescan all auto-import locations.
-