Class AssetInjectionProvider
- java.lang.Object
- 
- org.apache.tapestry5.internal.services.AssetInjectionProvider
 
- 
- All Implemented Interfaces:
- InjectionProvider2
 
 public class AssetInjectionProvider extends java.lang.Object implements InjectionProvider2 Performs injection of assets, based on the presence of thePathannotation. This is more useful than the generalAssetObjectProvider, because relative assets are supported.
- 
- 
Constructor SummaryConstructors Constructor Description AssetInjectionProvider(AssetSource assetSource)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanprovideInjection(PlasticField field, ObjectLocator locator, MutableComponentModel componentModel)Perform the injection, if possible.
 
- 
- 
- 
Constructor Detail- 
AssetInjectionProviderpublic AssetInjectionProvider(AssetSource assetSource) 
 
- 
 - 
Method Detail- 
provideInjectionpublic boolean provideInjection(PlasticField field, ObjectLocator locator, MutableComponentModel componentModel) Description copied from interface:InjectionProvider2Perform the injection, if possible. Most often, this will result in a call toPlasticField.inject(Object). The caller is responsible for invokingPlasticField.claim(Object).- Specified by:
- provideInjectionin interface- InjectionProvider2
- Parameters:
- field- that has the- Injectannotation
- locator- allows services to be located
- componentModel- defines the relevant aspects of the component
- Returns:
- true if an injection has been made (terminates the command chain), false to continue down the chain
 
 
- 
 
-