railo.commons.io.res
Class ResourcesImpl

java.lang.Object
  extended by railo.commons.io.res.ResourcesImpl
All Implemented Interfaces:
Resources

public final class ResourcesImpl
extends Object
implements Resources


Constructor Summary
ResourcesImpl()
           
 
Method Summary
 ResourceLock createResourceLock(long timeout, boolean caseSensitive)
           
 ResourceProvider getDefaultResourceProvider()
           
static ResourceProvider getFileResourceProvider()
           
static Resources getGlobal()
           
 Resource getResource(String path)
          returns a resource that matching the given path
 ResourceProvider[] getResourceProviders()
           
static void main(String[] args)
           
 void registerDefaultResourceProvider(ResourceProvider provider)
          adds a default factory, this factory is used, when shemecan't be mapped to a other factory
 void registerResourceProvider(ResourceProvider provider)
          adds a additional resource to System
 void reset()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourcesImpl

public ResourcesImpl()
Method Detail

registerDefaultResourceProvider

public void registerDefaultResourceProvider(ResourceProvider provider)
adds a default factory, this factory is used, when shemecan't be mapped to a other factory

Specified by:
registerDefaultResourceProvider in interface Resources
Parameters:
provider -

registerResourceProvider

public void registerResourceProvider(ResourceProvider provider)
adds a additional resource to System

Specified by:
registerResourceProvider in interface Resources
Parameters:
provider -

getResource

public Resource getResource(String path)
returns a resource that matching the given path

Specified by:
getResource in interface Resources
Parameters:
path -
Returns:
matching resource

getGlobal

public static Resources getGlobal()

main

public static void main(String[] args)
                 throws IOException
Throws:
IOException

getDefaultResourceProvider

public ResourceProvider getDefaultResourceProvider()
Specified by:
getDefaultResourceProvider in interface Resources
Returns:
the defaultResource

getResourceProviders

public ResourceProvider[] getResourceProviders()
Specified by:
getResourceProviders in interface Resources

getFileResourceProvider

public static ResourceProvider getFileResourceProvider()

createResourceLock

public ResourceLock createResourceLock(long timeout,
                                       boolean caseSensitive)
Specified by:
createResourceLock in interface Resources

reset

public void reset()
Specified by:
reset in interface Resources


Copyright © 2012 Railo