public final class BeanTypeResolver extends Object
The main purpose of this class is to aggregate and orchestrate the instances
of TypeResolver
components, which in turn actually provide the resolution
logic.
At the moment BeanTypeResolver
simply picks the first type resolver
capable of handling the current data and delegates the type resolution to it.
NOTE: for the time being this class is meant for the internal use only and is a subject to change any moment!
ClassPropertyBasedTypeResolver
Constructor and Description |
---|
BeanTypeResolver() |
BeanTypeResolver(Set<TypeResolver> resolvers) |
Modifier and Type | Method and Description |
---|---|
Optional<Class<?>> |
resolve(TypeDescriptor typeDescriptor,
Map<String,Object> properties)
Resolve the exact bean type from the provided base type information and the map of raw bean properties.
|
public BeanTypeResolver()
@Inject public BeanTypeResolver(Set<TypeResolver> resolvers)
public Optional<Class<?>> resolve(TypeDescriptor typeDescriptor, Map<String,Object> properties)
typeDescriptor
- type descriptor corresponding to the base class or interfaces, the descendant of which needs
to be resolved.properties
- raw map of bean properties (depending on the case and the transformer type may also contain
additional metadata information)Copyright © 2003–2021 Magnolia International Ltd.. All rights reserved.