railo.commons.io.res.util
Class ResourceProviderWrapper

java.lang.Object
  extended by railo.commons.io.res.util.ResourceProviderWrapper
All Implemented Interfaces:
Serializable, ResourceProvider
Direct Known Subclasses:
RamResourceProvider

public class ResourceProviderWrapper
extends Object
implements ResourceProvider

See Also:
Serialized Form

Constructor Summary
ResourceProviderWrapper(ResourceProvider provider)
           
 
Method Summary
 Map 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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceProviderWrapper

public ResourceProviderWrapper(ResourceProvider provider)
Method Detail

getArguments

public Map getArguments()
Description copied from interface: ResourceProvider
returns the arguments defined for this resource

Specified by:
getArguments in interface ResourceProvider
Returns:
scheme

getResource

public Resource getResource(String path)
Description copied from interface: ResourceProvider
return a resource that match given path

Specified by:
getResource in interface ResourceProvider
Returns:
matching resource to path

getScheme

public String getScheme()
Description copied from interface: ResourceProvider
returns the scheme of the resource

Specified by:
getScheme in interface ResourceProvider
Returns:
scheme

init

public ResourceProvider init(String scheme,
                             Map arguments)
Description copied from interface: ResourceProvider
this class is called by the "Resources" at startup

Specified by:
init in interface ResourceProvider
Parameters:
scheme - of the provider (can be "null")
arguments - initals argument (can be "null")

isAttributesSupported

public boolean isAttributesSupported()
Description copied from interface: ResourceProvider
returns if the resource support attributes for his resources

Specified by:
isAttributesSupported in interface ResourceProvider
Returns:
is attributes supported or not

isCaseSensitive

public boolean isCaseSensitive()
Description copied from interface: ResourceProvider
returns if the resources of the provider are case-sensitive or not

Specified by:
isCaseSensitive in interface ResourceProvider
Returns:
is resource case-sensitive or not

isModeSupported

public boolean isModeSupported()
Description copied from interface: ResourceProvider
returns if the resource support mode for his resources

Specified by:
isModeSupported in interface ResourceProvider
Returns:
is mode supported or not

lock

public void lock(Resource res)
          throws IOException
Specified by:
lock in interface ResourceProvider
Throws:
IOException

read

public void read(Resource res)
          throws IOException
Specified by:
read in interface ResourceProvider
Throws:
IOException

setResources

public void setResources(Resources resources)
Specified by:
setResources in interface ResourceProvider

unlock

public void unlock(Resource res)
Specified by:
unlock in interface ResourceProvider


Copyright © 2012 Railo