org.spicefactory.cinnamon.config.resource
Class AbstractResource

java.lang.Object
  extended by org.spicefactory.cinnamon.config.resource.AbstractResource
All Implemented Interfaces:
Resource
Direct Known Subclasses:
ByteArrayResource, ClassPathResource, FileSystemResource, HttpResource, WebAppResource

public abstract class AbstractResource
extends Object
implements Resource

Abstract base class for all Resource implementations.

Author:
Jens Halm

Constructor Summary
protected AbstractResource(String path)
          Creates a new instance for the given path.
 
Method Summary
 String getPath()
          Returns the path for this resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.spicefactory.cinnamon.config.resource.Resource
getInputStream
 

Constructor Detail

AbstractResource

protected AbstractResource(String path)
Creates a new instance for the given path.

Parameters:
path - the path for this Resource
Method Detail

getPath

public String getPath()
Description copied from interface: Resource
Returns the path for this resource.

Specified by:
getPath in interface Resource
Returns:
the path for this resource