@Multibinding public final class FieldTypeResolver extends Object implements info.magnolia.transformer.TypeResolver
field definition
types via short references instead of the fully-qualified class names.
Such references must correspond to the names of the respective field type definitions
which are stored at FieldTypeDefinitionRegistry
. The references are expected to be provided as values of
"" property.
NOTE: For the time being this class is meant for the internal use only and is a subject to change any moment!
BeanTypeResolver
Constructor and Description |
---|
FieldTypeResolver(FieldTypeDefinitionRegistry fieldTypeRegistry) |
Modifier and Type | Method and Description |
---|---|
Optional<Class<?>> |
resolve(Map<String,Object> properties) |
boolean |
supportsType(info.magnolia.jcr.node2bean.TypeDescriptor typeDescriptor) |
@Inject public FieldTypeResolver(FieldTypeDefinitionRegistry fieldTypeRegistry)
public Optional<Class<?>> resolve(Map<String,Object> properties)
resolve
in interface info.magnolia.transformer.TypeResolver
public boolean supportsType(info.magnolia.jcr.node2bean.TypeDescriptor typeDescriptor)
supportsType
in interface info.magnolia.transformer.TypeResolver
Copyright © 2019 Magnolia International Ltd.. All rights reserved.