Package org.apache.maven.index.reader
Interface ResourceHandler
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
- All Known Subinterfaces:
WritableResourceHandler
public interface ResourceHandler extends java.io.Closeable
Maven 2 Index resource abstraction, that should be handled as a resource (isCloseable
. That means, that implementations could perform any extra activity as FS locking or so (if uses FS as backing store). Is used by single thread only.- Since:
- 5.1.2
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ResourceHandler.Resource
Handle of content.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourceHandler.Resource
locate(java.lang.String name)
-
-
-
Method Detail
-
locate
ResourceHandler.Resource locate(java.lang.String name) throws java.io.IOException
- Parameters:
name
- Resource name, guaranteed to be non-null
and is FS and URL safe string.- Throws:
java.io.IOException
-
-