org.richfaces.resource.external

## Class ExternalMapping

- java.lang.Object
- - org.richfaces.resource.external.ExternalMapping

-     public class ExternalMapping
      extends Object

  Holds `ResourceKey` and external resource location in order to create `ExternalResource` lazily.
  Author:
    Lukas Fryc

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ExternalMapping(org.richfaces.resource.ResourceKey resourceKey, String resourceLocation)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `org.richfaces.resource.external.ExternalResource` | `getResource(javax.faces.context.FacesContext facesContext)` Creates new `ExternalResource` for given `ResourceKey` and external resource location
    `String` | `getResourceLocation()` Returns external resource location

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ExternalMapping

          public ExternalMapping(org.richfaces.resource.ResourceKey resourceKey,
                         String resourceLocation)

  - ### Method Detail

    - #### getResource

          public org.richfaces.resource.external.ExternalResource getResource(javax.faces.context.FacesContext facesContext)

      Creates new `ExternalResource` for given `ResourceKey` and external resource location
      Parameters:
        `facesContext` - current `FacesContext`
      Returns:
        new `ExternalResource` for given `ResourceKey` and external resource location

    - #### getResourceLocation

          public String getResourceLocation()

      Returns external resource location
      Returns:
        external resource location

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.