public class ValueObjectProvider extends Object implements ObjectProvider
Value
annotation is present. The string value has symbols expanded, and then is
coerced
to the associated type. The value may first be coerced to an intermediate type if the
IntermediateType
annotation is present.Constructor and Description |
---|
ValueObjectProvider(SymbolSource symbolSource,
TypeCoercer typeCoercer) |
Modifier and Type | Method and Description |
---|---|
<T> T |
provide(Class<T> objectType,
AnnotationProvider annotationProvider,
ObjectLocator locator)
Provides an object based on an expression.
|
public ValueObjectProvider(@Builtin SymbolSource symbolSource, @Builtin TypeCoercer typeCoercer)
public <T> T provide(Class<T> objectType, AnnotationProvider annotationProvider, ObjectLocator locator)
ObjectProvider
provide
in interface ObjectProvider
objectType
- the expected object typeannotationProvider
- provides access to annotations (typically, the field or parameter to which an
injection-related annotation is attached); annotations on the field or parameter may
also be used when resolving the desired objectlocator
- locator for the context in which the provider is being used5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.