org.easetech.easytest.io
Interface ResourceLoader

All Known Implementing Classes:
ResourceLoaderStrategy

public interface ResourceLoader

ResourceLoader interface consisting of methods to get hold of a Resource object.

Author:
Anuj Kumar
See Also:
ResourceLoaderStrategy

Field Summary
static String CLASSPATH_PREFIX
          The classpath prefix
static String FILE_PREFIX
          The file prefix
static String URL_PREFIX
          The URL prefix
 
Method Summary
 ClassLoader getClassLoader()
          Get the class loader associated with the Resource Loader
 Resource getResource(String location)
          Get the Resource instance based on the location
 

Field Detail

CLASSPATH_PREFIX

static final String CLASSPATH_PREFIX
The classpath prefix

See Also:
Constant Field Values

FILE_PREFIX

static final String FILE_PREFIX
The file prefix

See Also:
Constant Field Values

URL_PREFIX

static final String URL_PREFIX
The URL prefix

See Also:
Constant Field Values
Method Detail

getResource

Resource getResource(String location)
Get the Resource instance based on the location

Parameters:
location - the location of the resource
Returns:
Resource instance

getClassLoader

ClassLoader getClassLoader()
Get the class loader associated with the Resource Loader

Returns:
the class loader associated with the Resource Loader


Copyright © 2013. All Rights Reserved.