@Singleton @Multibinding public final class AnnotationProcessingTypeResolver extends Object implements TypeResolver
TypeResolver
implementation capable of deducing the type from a string alias instead of fully-qualified class name.
In order to successfully conduct the resolution this resolver expects the "" property value
to contain the alias which is assigned to some class via annotation.
NOTE: For the time being this class is meant for the internal use only and is a subject to change any moment!
TypeAlias
Constructor and Description |
---|
AnnotationProcessingTypeResolver(MagnoliaConfigurationProperties configurationProperties) |
Modifier and Type | Method and Description |
---|---|
Optional<Class<?>> |
resolveType(TypeDescriptor typeDescriptor,
Map<String,Object> properties)
Attempt to resolve the object type based on its properties and the
base parent type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
resolve, supportsType
@Inject public AnnotationProcessingTypeResolver(MagnoliaConfigurationProperties configurationProperties)
public Optional<Class<?>> resolveType(TypeDescriptor typeDescriptor, Map<String,Object> properties)
TypeResolver
resolveType
in interface TypeResolver
typeDescriptor
- type descriptorproperties
- raw map of related bean propertiesOptional
instance containing the resolved class
in case of successful resolution or Optional.empty()
otherwise.Copyright © 2003–2019 Magnolia International Ltd.. All rights reserved.