Class ClasspathResource
-
- org.apache.tapestry5.commons.internal.util.LockSupport
-
- org.apache.tapestry5.ioc.internal.util.AbstractResource
-
- org.apache.tapestry5.ioc.internal.util.ClasspathResource
-
- All Implemented Interfaces:
Resource
public final class ClasspathResource extends AbstractResource
Implementation of ).
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
obj)
int
hashCode()
protected Resource
path)
Factory method provided by subclasses.toString()
toURL()
Returns the URL for the resource, or null if it does not exist.-
Methods inherited from class org.apache.tapestry5.ioc.internal.util.AbstractResource
exists, forFile, forLocale, getFile, getFolder, getPath, isVirtual, openStream, validateURL, withExtension
-
Methods inherited from class org.apache.tapestry5.commons.internal.util.LockSupport
acquireReadLock, downgradeWriteLockToReadLock, releaseReadLock, releaseWriteLock, takeWriteLock, upgradeReadLockToWriteLock
-
-
-
-
Method Detail
-
newResource
protected path)
Description copied from class:AbstractResource
Factory method provided by subclasses.- Specified by:
newResource
in classAbstractResource
-
toURL
public toURL()
Description copied from interface:Resource
Returns the URL for the resource, or null if it does not exist. This value is lazily computed; starting in 5.3.4, subclasses may cache the result. Starting in 5.4, some "virtual resources" may return null.
-
equals
public boolean obj)
- Overrides:
in class
-
hashCode
public int hashCode()
- Overrides:
in class
-
toString
public toString()
- Overrides:
in class
-
-