org.jboss.portal.common.util
Interface ResourceLoader

All Known Implementing Classes:
CLResourceLoader

public interface ResourceLoader

A generic interface which define loading capabilities of resources. The name format must follow the regular expression : ^(/[-a-zA-Z0-9_\.]+)+$

Version:
$Revision: 6653 $
Author:
Julien Viet

Field Summary
static java.lang.String REGEX_NAME_VALIDATOR
          Helper to validate name.
 
Method Summary
 LoaderResource getResource(java.lang.String location)
           
 java.io.InputStream load(java.lang.String location)
          Returns an InputStream or null if not found.
 

Field Detail

REGEX_NAME_VALIDATOR

static final java.lang.String REGEX_NAME_VALIDATOR
Helper to validate name.

See Also:
Constant Field Values
Method Detail

load

java.io.InputStream load(java.lang.String location)
Returns an InputStream or null if not found.


getResource

LoaderResource getResource(java.lang.String location)