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

    Constructors
    Constructor
    Description
    CachingResourceHandler(org.apache.maven.index.reader.WritableResourceHandler local, org.apache.maven.index.reader.ResourceHandler remote)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    org.apache.maven.index.reader.ResourceHandler.Resource
    locate(String name)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CachingResourceHandler

      public CachingResourceHandler(org.apache.maven.index.reader.WritableResourceHandler local, org.apache.maven.index.reader.ResourceHandler remote)
  • Method Details

    • locate

      public org.apache.maven.index.reader.ResourceHandler.Resource locate(String name)
      Specified by:
      locate in interface org.apache.maven.index.reader.ResourceHandler
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface org.apache.maven.index.reader.ResourceHandler
      Throws:
      IOException