public interface Asset2 extends Asset
Asset
that adds a method to determine if the asset is invariant or not.
AssetFactory
instances should ideally return Asset2 objects, not Asset. This is
only of primary interest to the AssetBindingFactory
, as it determines
the invariance of the binding from the asset (and assumes variant unless the asset object implements this
interface).Modifier and Type | Method and Description |
---|---|
boolean |
isInvariant()
Returns true if the Asset is invariant (meaning that it returns the same value from
Asset.toClientURL()
at all times). |
getResource, toClientURL
boolean isInvariant()
Asset.toClientURL()
at all times). Most Assets are invariant. Assets that are used as binding values will be cached more aggressively by Tapestry if they are
invariant.AssetPathConverter.isInvariant()
,
Binding.isInvariant()
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.