org.jboss.seam.render.spi
Interface TemplateResource<T>

All Known Implementing Classes:
ClassLoaderTemplateResource, FileTemplateResource, InputStreamTemplateResource, StringTemplateResource

public interface TemplateResource<T>

Handle to a template-able resource.

Author:
Lincoln Baxter, III

Method Summary
 InputStream getInputStream()
          Get the underlying data for this TemplateResource in the form of an InputStream.
 long getLastModified()
          Get the last modified time of this resource.
 String getPath()
          Get the unique path at which this resource can be located.
 TemplateResolver<T> getResolvedBy()
          Get the TemplateResolver with which this TemplateResource was resolved.
 T getUnderlyingResource()
          Get the underlying T resource object for this TemplateResource
 

Method Detail

getPath

String getPath()
Get the unique path at which this resource can be located. A resource with a null path cannot be located by the TemplateResolverFactory.


getInputStream

InputStream getInputStream()
Get the underlying data for this TemplateResource in the form of an InputStream.


getLastModified

long getLastModified()
Get the last modified time of this resource. If zero, the last modified time is not available.


getUnderlyingResource

T getUnderlyingResource()
Get the underlying T resource object for this TemplateResource


getResolvedBy

TemplateResolver<T> getResolvedBy()
Get the TemplateResolver with which this TemplateResource was resolved.



Copyright © 2011 Seam Framework. All Rights Reserved.