public class AssetObjectProvider extends Object implements ObjectProvider
Path
annotation, to
identify what asset to be injected.Constructor and Description |
---|
AssetObjectProvider(AssetSource source,
TypeCoercer typeCoercer,
SymbolSource symbolSource) |
Modifier and Type | Method and Description |
---|---|
<T> T |
provide(Class<T> objectType,
AnnotationProvider annotationProvider,
ObjectLocator locator)
Provides the asset.
|
public AssetObjectProvider(@Core AssetSource source, @Builtin TypeCoercer typeCoercer, @Builtin SymbolSource symbolSource)
public <T> T provide(Class<T> objectType, AnnotationProvider annotationProvider, ObjectLocator locator)
provide
in interface ObjectProvider
objectType
- the type of object (which must be Object or Asset)locator
- not usedannotationProvider
- 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 object5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.