|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jsefa.common.annotation.TypeMappingFactory<String,RbfTypeMappingRegistry>
net.sf.jsefa.rbf.annotation.RbfTypeMappingFactory
public abstract class RbfTypeMappingFactory
Factory for creating TypeMappings from annotated classes.
It is thread-safe and all subclasses must be thread-safe, too.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.sf.jsefa.common.annotation.TypeMappingFactory |
|---|
TypeMappingFactory.TypeMappingPlaceholder |
| Constructor Summary | |
|---|---|
RbfTypeMappingFactory(RbfTypeMappingRegistry typeMappingRegistry,
SimpleTypeConverterProvider simpleTypeConverterProvider,
ValidatorProvider validatorProvider,
ObjectAccessorProvider objectAccessorProvider,
RbfAnnotations annotations)
Constructs a new AbstractRbfTypeMappingFactory. |
|
| Method Summary | |
|---|---|
String |
createIfAbsent(Class<?> objectType)
Creates a type mapping for the given object type and returns its name. |
protected abstract TypeMapping<String> |
createSimpleTypeMapping(Class<?> objectType,
String dataTypeName,
SimpleTypeConverter converter,
Field field)
Creates a new simple type mapping. |
protected String |
getAnnotatedDataTypeName(Annotation annotation,
Class<?> annotationContextClass)
Returns the data type name as declared through the given annotation. |
| Methods inherited from class net.sf.jsefa.common.annotation.TypeMappingFactory |
|---|
assertHasSimpleType, assertNoCollectionType, assertTypeMappingExists, assertTypeMappingIsSimple, createSimpleTypeConverter, getCollectionItemType, getMapKeyType, getMapValueType, getObjectAccessorProvider, getSimpleTypeConverterProvider, getTypeMappingRegistry, getValidatorFactory, getValidatorProvider, hasCollectionType, hasMapType, hasSimpleType, prepareToCreate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RbfTypeMappingFactory(RbfTypeMappingRegistry typeMappingRegistry,
SimpleTypeConverterProvider simpleTypeConverterProvider,
ValidatorProvider validatorProvider,
ObjectAccessorProvider objectAccessorProvider,
RbfAnnotations annotations)
AbstractRbfTypeMappingFactory.
typeMappingRegistry - the type mapping registry. New types will be registered using that registry.simpleTypeConverterProvider - the simple type converter provider to usevalidatorProvider - the validator provider to useobjectAccessorProvider - the object accessor provider to useannotations - the parameter objects providing the annotation classes to use.| Method Detail |
|---|
public final String createIfAbsent(Class<?> objectType)
createIfAbsent in class TypeMappingFactory<String,RbfTypeMappingRegistry>objectType - the object type.
protected abstract TypeMapping<String> createSimpleTypeMapping(Class<?> objectType,
String dataTypeName,
SimpleTypeConverter converter,
Field field)
objectType - the object typedataTypeName - the data type nameconverter - the converterfield - the field
protected String getAnnotatedDataTypeName(Annotation annotation,
Class<?> annotationContextClass)
getAnnotatedDataTypeName in class TypeMappingFactory<String,RbfTypeMappingRegistry>annotation - the annotationannotationContextClass - the context class of the annotation. This class may be needed to interpret the
annotation data.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||