Class AbstractAsset
- java.lang.Object
- 
- org.apache.tapestry5.internal.services.AbstractAsset
 
- 
- All Implemented Interfaces:
- Asset
 - Direct Known Subclasses:
- UrlAsset
 
 public abstract class AbstractAsset extends java.lang.Object implements Asset Base class for assets.- Since:
- 5.1.0.0
 
- 
- 
Constructor SummaryConstructors Constructor Description AbstractAsset(boolean invariant)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisInvariant()Returns true if the Asset is invariant (meaning that it returns the same value fromAsset.toClientURL()at all times).java.lang.StringtoString()ReturnsAsset.toClientURL().- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.apache.tapestry5.AssetgetResource, toClientURL
 
- 
 
- 
- 
- 
Constructor Detail- 
AbstractAssetpublic AbstractAsset(boolean invariant) 
 
- 
 - 
Method Detail- 
isInvariantpublic boolean isInvariant() Description copied from interface:AssetReturns true if the Asset is invariant (meaning that it returns the same value fromAsset.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. This default implementation returnsfalse- Specified by:
- isInvariantin interface- Asset
- Returns:
- true if invariant
- See Also:
- AssetPathConverter.isInvariant(),- Binding.isInvariant()
 
 - 
toStringpublic java.lang.String toString() ReturnsAsset.toClientURL().- Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-