public class NotFoundModule extends ModuleIdentifier implements IModule, Cloneable, Serializable
Constructor and Description |
---|
NotFoundModule(String mid,
URI uri) |
Modifier and Type | Method and Description |
---|---|
void |
clearCached(ICacheManager mgr)
Delete any cache files associated with this module
|
Object |
clone() |
Future<ModuleBuildReader> |
getBuild(javax.servlet.http.HttpServletRequest request)
Returns a
to the
module build for the specified request. |
IResource |
getResource(IAggregator aggregator)
This method is provided so that the module can function as a runtime cache
for the
IResource object associated with the module URI that was
used to construct this instance. |
URI |
getURI()
Returns the source url for this module
|
getModuleId, getModuleName, getPluginName
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getModuleId, getModuleName, getPluginName
public Future<ModuleBuildReader> getBuild(javax.servlet.http.HttpServletRequest request)
IModule
Future
<ModuleBuildReader
>
to the
module build for the specified request. The build object is returned
asynchronously in order to facilitate concurrent processing of module
builds.getBuild
in interface IModule
request
- The HTTP request objectFuture
to a ModuleBuildReader
object that will be available
at some point in the future.public void clearCached(ICacheManager mgr)
IModule
clearCached
in interface IModule
mgr
- The cache manager. Modules can use
ICacheManager.deleteFileDelayed(String)
to
asynchronously schedule cache files for deletion following a
delay period, avoiding the potential for synchronization
issues associated with the use of cache files by multiple
threads.public Object clone() throws CloneNotSupportedException
clone
in class ModuleIdentifier
CloneNotSupportedException
public URI getURI()
IModule
public IResource getResource(IAggregator aggregator)
IModule
IResource
object associated with the module URI that was
used to construct this instance.
Note that instances of IModule
are both Serializable
and Cloneable, yet instances of IResource
are neither, so the module
must not attempt to save the cached IResource
object to its
persistent state, nor to object clones.
getResource
in interface IModule
aggregator
- the aggregator. The module may use the IAggregator.newResource(URI)
method to obtain a new instance of the IResource
.IResource
object for this module's URI.Copyright © 2011-2015 IBM. All Rights Reserved.