Class DirectoryResourceHandler

java.lang.Object
org.apache.maven.index.reader.DirectoryResourceHandler
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.maven.index.reader.ResourceHandler, org.apache.maven.index.reader.WritableResourceHandler

public class DirectoryResourceHandler extends Object implements org.apache.maven.index.reader.WritableResourceHandler
A trivial File directory handler that does not perform any locking or extra bits, and just serves up files by name from specified existing directory.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.maven.index.reader.ResourceHandler

    org.apache.maven.index.reader.ResourceHandler.Resource

    Nested classes/interfaces inherited from interface org.apache.maven.index.reader.WritableResourceHandler

    org.apache.maven.index.reader.WritableResourceHandler.WritableResource
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    org.apache.maven.index.reader.WritableResourceHandler.WritableResource
    locate(String name)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.maven.index.reader.ResourceHandler

    close
  • Constructor Details

    • DirectoryResourceHandler

      public DirectoryResourceHandler(File rootDirectory)
  • Method Details

    • getRootDirectory

      public File getRootDirectory()
    • locate

      public org.apache.maven.index.reader.WritableResourceHandler.WritableResource locate(String name)
      Specified by:
      locate in interface org.apache.maven.index.reader.ResourceHandler
      Specified by:
      locate in interface org.apache.maven.index.reader.WritableResourceHandler