You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2007/06/07 22:09:58 UTC
svn commit: r545293 -
/incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/FSClassRegistry.java
Author: schor
Date: Thu Jun 7 13:09:57 2007
New Revision: 545293
URL: http://svn.apache.org/viewvc?view=rev&rev=545293
Log:
[UIMA-386] prevent JCas gen'd classes from setting the FSClassRegistry.
Modified:
incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/FSClassRegistry.java
Modified: incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/FSClassRegistry.java
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/FSClassRegistry.java?view=diff&rev=545293&r1=545292&r2=545293
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/FSClassRegistry.java (original)
+++ incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/FSClassRegistry.java Thu Jun 7 13:09:57 2007
@@ -201,8 +201,14 @@
* the object having a createFS method in it for this type
*/
public void addGeneratorForType(TypeImpl type, FSGenerator fsFactory) {
- this.generators[type.getCode()] = fsFactory;
+ //this.generators[type.getCode()] = fsFactory;
}
+
+ // internal use only
+ public void addGeneratorForTypeInternal(TypeImpl type, FSGenerator fsFactory) {
+ //this.generators[type.getCode()] = fsFactory;
+ }
+
// Internal use only
public FSGenerator getGeneratorForType(TypeImpl type) {
@@ -256,8 +262,7 @@
*/
public void loadJCasGeneratorForType (int type, Constructor c, TypeImpl casType, boolean isSubtypeOfAnnotationBase) {
FSGenerator fsGenerator = new JCasFsGenerator(type, c, isSubtypeOfAnnotationBase, ts.sofaNumFeatCode, ts.annotSofaFeatCode);
- addGeneratorForType(casType, fsGenerator);
+ addGeneratorForTypeInternal(casType, fsGenerator);
}
-
-
+
}