Class ClasspathResource
- java.lang.Object
- 
- 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 ofResourcefor files on the classpath (as defined by aClassLoader).
- 
- 
Constructor SummaryConstructors Constructor Description ClasspathResource(java.lang.ClassLoader classLoader, java.lang.String path)ClasspathResource(java.lang.String path)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()protected ResourcenewResource(java.lang.String path)Factory method provided by subclasses.java.lang.StringtoString()java.net.URLtoURL()Returns the URL for the resource, or null if it does not exist.- 
Methods inherited from class org.apache.tapestry5.ioc.internal.util.AbstractResourceexists, forFile, forLocale, getFile, getFolder, getPath, isVirtual, openStream, validateURL, withExtension
 - 
Methods inherited from class org.apache.tapestry5.commons.internal.util.LockSupportacquireReadLock, downgradeWriteLockToReadLock, releaseReadLock, releaseWriteLock, takeWriteLock, upgradeReadLockToWriteLock
 
- 
 
- 
- 
- 
Constructor Detail- 
ClasspathResourcepublic ClasspathResource(java.lang.String path) 
 - 
ClasspathResourcepublic ClasspathResource(java.lang.ClassLoader classLoader, java.lang.String path) 
 
- 
 - 
Method Detail- 
newResourceprotected Resource newResource(java.lang.String path) Description copied from class:AbstractResourceFactory method provided by subclasses.- Specified by:
- newResourcein class- AbstractResource
 
 - 
toURLpublic java.net.URL toURL() Description copied from interface:ResourceReturns 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.
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-