|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceProvider
Interface for resource provider, loaded by "Resources", classes that implement a provider that produce resources, that match given path.
Method Summary | |
---|---|
Map<String,String> |
getArguments()
returns the arguments defined for this resource |
Resource |
getResource(String path)
return a resource that match given path |
String |
getScheme()
returns the scheme of the resource |
ResourceProvider |
init(String scheme,
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)
|
Method Detail |
---|
ResourceProvider init(String scheme, Map arguments)
scheme
- of the provider (can be "null")arguments
- initals argument (can be "null")Resource getResource(String path)
path
-
String getScheme()
Map<String,String> getArguments()
void setResources(Resources resources)
void unlock(Resource res)
void lock(Resource res) throws IOException
IOException
void read(Resource res) throws IOException
IOException
boolean isCaseSensitive()
boolean isModeSupported()
boolean isAttributesSupported()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |