Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.seam.core
Class ResourceLoader

    java.lang.Object
      org.jboss.seam.core.ResourceLoader

Direct Known Subclasses:
  ResourceLoader

    @Scope(value=STATELESS)
    @BypassInterceptors
    @Install(precedence=0)
    @Name(value="org.jboss.seam.core.resourceLoader")
    public class ResourceLoader

extends Object

Access to application resources and resource bundles.

Author:
  Gavin King

Constructor Summary
`ResourceLoader()`

Method Summary
`String[]` | `getBundleNames()` The configurable list of delegate resource bundle names
`URL` | `getResource(String resource)`
`InputStream` | `getResourceAsStream(String resource)`
`static ResourceLoader` | `instance()`
`ResourceBundle` | `loadBundle(String bundleName)` Load a resource bundle by name (may be overridden by subclasses who want to use non-standard resource bundle types).
`void` | `setBundleNames(String[] bundleNames)`
`String` | `toString()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### ResourceLoader

    public ResourceLoader()

Method Detail

### getBundleNames

    public String[] getBundleNames()

  The configurable list of delegate resource bundle names

  Returns:
    an array of resource bundle names

### setBundleNames

    public void setBundleNames(String[] bundleNames)

### getResourceAsStream

    public InputStream getResourceAsStream(String resource)

### getResource

    public URL getResource(String resource)

### loadBundle

    public ResourceBundle loadBundle(String bundleName)

  Load a resource bundle by name (may be overridden by subclasses who want to use non-standard resource bundle types).

  Parameters:
    `bundleName` - the name of the resource bundle
  Returns:
    an instance of java.util.ResourceBundle

### toString

    public String toString()

  Overrides:
    `toString` in class `Object`

### instance

    public static ResourceLoader instance()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD