Class ContextResource
- java.lang.Object
-
- org.apache.tapestry5.commons.internal.util.LockSupport
-
- org.apache.tapestry5.ioc.internal.util.AbstractResource
-
- org.apache.tapestry5.internal.services.ContextResource
-
- All Implemented Interfaces:
Resource
public class ContextResource extends AbstractResource
A resource stored with in the web application context.
-
-
Constructor Summary
Constructors Constructor Description ContextResource(Context context, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)inthashCode()protected ResourcenewResource(String path)Factory method provided by subclasses.StringtoString()URLtoURL()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
-
-
-
-
Constructor Detail
-
ContextResource
public ContextResource(Context context, String path)
-
-
Method Detail
-
newResource
protected Resource newResource(String path)
Description copied from class:AbstractResourceFactory method provided by subclasses.- Specified by:
newResourcein classAbstractResource
-
toURL
public 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.
-
-