org.spicefactory.cinnamon.config.resource
Class AbstractResource
java.lang.Object
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
|
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 |
AbstractResource
protected AbstractResource(String path)
- Creates a new instance for the given path.
- Parameters:
path - the path for this Resource
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