Package org.apache.uima.cas.impl
Class FSClassRegistry
java.lang.Object
org.apache.uima.cas.impl.FSClassRegistry
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final FSGenerator
<FeatureStructureImplC> private FSGenerator<?>[]
private final Map
<ClassLoader, FSGenerator<?>[]> private TypeSystemImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
addClassForType
(Type type, FSGenerator<?> fsFactory) adds generator for type and all its subtypes.void
addGeneratorForType
(TypeImpl type, FSGenerator<?> fsFactory) No longer used, but left in for backward compatibility with older JCasgen'd classes(package private) void
flush()
FSGenerator<?>[]
FSGenerator<?>[]
(package private) void
void
saveGeneratorsForClassLoader
(ClassLoader cl, FSGenerator<?>[] newGenerators) void
setBaseGenerators
(FSGenerator<?>[] generators) boolean
swapInGeneratorsForClassLoader
(ClassLoader cl, CASImpl casImpl)
-
Field Details
-
ts
-
generators
-
defaultGenerator
-
generatorsByClassLoader
-
-
Constructor Details
-
FSClassRegistry
FSClassRegistry(TypeSystemImpl ts)
-
-
Method Details
-
initGeneratorArray
void initGeneratorArray() -
addClassForType
adds generator for type and all its subtypes. Because of this, call this on supertypes first, then subtypes (otherwise subtypes will be overwritten by generators for the supertypes).- Parameters:
type
- the CAS typefsFactory
- the object having a createFS method in it for this type
-
addGeneratorForType
No longer used, but left in for backward compatibility with older JCasgen'd classes- Parameters:
type
- -fsFactory
- -
-
flush
void flush() -
saveGeneratorsForClassLoader
-
swapInGeneratorsForClassLoader
-
getBaseGenerators
-
setBaseGenerators
-
getNewFSGeneratorSet
-