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 |
ExternalMapping(org.richfaces.resource.ResourceKey resourceKey,
String resourceLocation)
|
Method Summary |
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 |
ExternalMapping
public ExternalMapping(org.richfaces.resource.ResourceKey resourceKey,
String resourceLocation)
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 © 2013 JBoss by Red Hat. All Rights Reserved.