public final class ResourceKey extends Object
Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Function<String,ResourceKey> |
FACTORY
A function for creating
ResourceKey from strings by calling create(String) factory. |
Constructor and Description |
---|
ResourceKey(String resourceName,
String libraryName) |
Modifier and Type | Method and Description |
---|---|
static ResourceKey |
create(javax.faces.application.Resource resource)
Factory method for creating resource key from
Resource |
static ResourceKey |
create(String resourceQualifier)
Factory method for creating resource key from single resource qualifier in format library:resource
|
static ResourceKey |
create(String resourceName,
String libraryName)
Factory method for creating resource key from resource and library name
|
boolean |
equals(Object obj) |
String |
getLibraryName()
Returns library's name
|
String |
getResourceName()
Returns resource's name
|
int |
hashCode() |
String |
toString() |
public static final com.google.common.base.Function<String,ResourceKey> FACTORY
ResourceKey
from strings by calling create(String)
factory.public String getResourceName()
public String getLibraryName()
public static ResourceKey create(String resourceQualifier)
public static ResourceKey create(String resourceName, String libraryName)
public static ResourceKey create(javax.faces.application.Resource resource)
Resource
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.