public class AssetInjectionProvider extends Object implements InjectionProvider2
Path
annotation. This is more
useful than the
general AssetObjectProvider
, because relative assets are supported.Constructor and Description |
---|
AssetInjectionProvider(AssetSource assetSource) |
Modifier and Type | Method and Description |
---|---|
boolean |
provideInjection(PlasticField field,
ObjectLocator locator,
MutableComponentModel componentModel)
Perform the injection, if possible.
|
public AssetInjectionProvider(AssetSource assetSource)
public boolean provideInjection(PlasticField field, ObjectLocator locator, MutableComponentModel componentModel)
InjectionProvider2
PlasticField.inject(Object)
. The caller is responsible for invoking PlasticField.claim(Object)
.provideInjection
in interface InjectionProvider2
field
- that has the Inject
annotationlocator
- allows services to be locatedcomponentModel
- defines the relevant aspects of the component${project.version} - Copyright © 2003-2015 The Apache Software Foundation.