|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sormula.annotation.ImplicitTypeAnnotationReader
public class ImplicitTypeAnnotationReader
Reads ImplicitType
annotations from classes. The first ImplicitType
annotation found for a class is used. If ImplicitType is already defined for
a class type, then it is ignored.
Constructor Summary | |
---|---|
ImplicitTypeAnnotationReader(TypeTranslatorMap typeTranslatorMap,
java.lang.reflect.Field field)
Constructs for classes that may contain the annotation. |
Method Summary | |
---|---|
void |
install()
Reads ImplicitType annotations from sources and adds them to
type map if they are not already defined. |
protected void |
updateMap(ImplicitType typeAnnotation)
Adds a new instance of TypeTranslator to type translator map if not already
defined for Field type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImplicitTypeAnnotationReader(TypeTranslatorMap typeTranslatorMap, java.lang.reflect.Field field)
typeTranslatorMap
- a class that implements TypeTranslatorMap
; typically
Database
and Table
field
- field that contains ImplicitType
annotationMethod Detail |
---|
public void install() throws java.lang.Exception
ImplicitType
annotations from sources and adds them to
type map if they are not already defined.
java.lang.Exception
- if error creating TypeTranslator
protected void updateMap(ImplicitType typeAnnotation) throws java.lang.Exception
TypeTranslator
to type translator map if not already
defined for Field type.
typeAnnotation
- definition of type to add
java.lang.Exception
- if error creating new instance of TypeTranslator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |