@Multibinding public interface TypeResolver
TypeResolverattempts to deduce the object type from the provided properties related to that object.
Historically to-bean transformers in Magnolia contained similar
functionality which is now provided as the default implementation
of this interface (
NOTE: for the time being this class is meant for the internal use only and is a subject to change any moment!
|Modifier and Type||Method and Description|
since 6.1 - use
Attempt to resolve the object type based on its properties and the base parent type.
Report whether current resolver is capable of dealing with the object types related to the one provided.
default Optional<Class<?>> resolveType(TypeDescriptor typeDescriptor, Map<String,Object> properties)
default boolean supportsType(TypeDescriptor typeDescriptor)
typeDescriptor- type descriptor
trueif current resolver is capable of resolving the descendants of the type described by the provided type descriptor,
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.