Package org.apache.maven.index.reader
Class CachingResourceHandler
java.lang.Object
org.apache.maven.index.reader.CachingResourceHandler
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.maven.index.reader.ResourceHandler
public class CachingResourceHandler
extends Object
implements org.apache.maven.index.reader.ResourceHandler
A trivial caching
ResourceHandler
that caches forever during single session (existence of the instance).-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.maven.index.reader.ResourceHandler
org.apache.maven.index.reader.ResourceHandler.Resource
-
Constructor Summary
ConstructorDescriptionCachingResourceHandler
(org.apache.maven.index.reader.WritableResourceHandler local, org.apache.maven.index.reader.ResourceHandler remote) -
Method Summary
-
Constructor Details
-
CachingResourceHandler
public CachingResourceHandler(org.apache.maven.index.reader.WritableResourceHandler local, org.apache.maven.index.reader.ResourceHandler remote)
-
-
Method Details
-
locate
- Specified by:
locate
in interfaceorg.apache.maven.index.reader.ResourceHandler
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceorg.apache.maven.index.reader.ResourceHandler
- Throws:
IOException
-