public interface ResourceProvider
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getArguments()
returns the arguments defined for this resource
|
Resource |
getResource(java.lang.String path)
return a resource that match given path
|
java.lang.String |
getScheme()
returns the scheme of the resource
|
ResourceProvider |
init(java.lang.String scheme,
java.util.Map arguments)
this class is called by the "Resources" at startup
|
boolean |
isAttributesSupported()
returns if the resource support attributes for his resources
|
boolean |
isCaseSensitive()
returns if the resources of the provider are case-sensitive or not
|
boolean |
isModeSupported()
returns if the resource support mode for his resources
|
void |
lock(Resource res) |
void |
read(Resource res) |
void |
setResources(Resources resources) |
void |
unlock(Resource res) |
ResourceProvider init(java.lang.String scheme, java.util.Map arguments)
scheme
- of the provider (can be "null")arguments
- initals argument (can be "null")Resource getResource(java.lang.String path)
path
- java.lang.String getScheme()
java.util.Map<java.lang.String,java.lang.String> getArguments()
void setResources(Resources resources)
void unlock(Resource res)
void lock(Resource res) throws java.io.IOException
java.io.IOException
void read(Resource res) throws java.io.IOException
java.io.IOException
boolean isCaseSensitive()
boolean isModeSupported()
boolean isAttributesSupported()