org.apache.tapestry.asset
Class AbstractAsset

java.lang.Object
  extended by org.apache.tapestry.asset.AbstractAsset
All Implemented Interfaces:
org.apache.hivemind.Locatable, IAsset
Direct Known Subclasses:
ContextAsset, ExternalAsset, PrivateAsset

public abstract class AbstractAsset
extends Object
implements IAsset

Base class for IAsset implementations. Provides the location property.

Since:
3.0
Author:
Howard Lewis Ship

Constructor Summary
protected AbstractAsset(org.apache.hivemind.Resource resourceLocation, org.apache.hivemind.Location location)
           
 
Method Summary
 org.apache.hivemind.Location getLocation()
           
 org.apache.hivemind.Resource getResourceLocation()
          Returns the underlying location of the asset.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.tapestry.IAsset
buildURL, getResourceAsStream
 

Constructor Detail

AbstractAsset

protected AbstractAsset(org.apache.hivemind.Resource resourceLocation,
                        org.apache.hivemind.Location location)
Method Detail

getLocation

public org.apache.hivemind.Location getLocation()
Specified by:
getLocation in interface org.apache.hivemind.Locatable

getResourceLocation

public org.apache.hivemind.Resource getResourceLocation()
Description copied from interface: IAsset
Returns the underlying location of the asset.

Specified by:
getResourceLocation in interface IAsset

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.