Class ResourceInfo
- java.lang.Object
-
- com.sun.faces.application.resource.ResourceInfo
-
- Direct Known Subclasses:
ClientResourceInfo
,FaceletResourceInfo
public class ResourceInfo extends Object
-
-
Constructor Summary
Constructors Constructor Description ResourceInfo(ContractInfo contract, String name, VersionInfo version, ResourceHelper helper)
ResourceInfo(LibraryInfo library, ContractInfo contract, String name, VersionInfo version)
ResourceInfo(ResourceInfo other, boolean copyLocalePrefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copy(ResourceInfo other)
boolean
equals(Object obj)
String
getContract()
ResourceHelper
getHelper()
LibraryInfo
getLibraryInfo()
String
getLocalePrefix()
String
getName()
String
getPath()
VersionInfo
getVersion()
int
hashCode()
boolean
isDoNotCache()
void
setDoNotCache(boolean doNotCache)
-
-
-
Constructor Detail
-
ResourceInfo
public ResourceInfo(LibraryInfo library, ContractInfo contract, String name, VersionInfo version)
-
ResourceInfo
public ResourceInfo(ContractInfo contract, String name, VersionInfo version, ResourceHelper helper)
-
ResourceInfo
public ResourceInfo(ResourceInfo other, boolean copyLocalePrefix)
-
-
Method Detail
-
copy
public void copy(ResourceInfo other)
-
isDoNotCache
public boolean isDoNotCache()
-
setDoNotCache
public void setDoNotCache(boolean doNotCache)
-
getHelper
public ResourceHelper getHelper()
- Returns:
- return the
ResourceHelper
for this resource
-
getLibraryInfo
public LibraryInfo getLibraryInfo()
- Returns:
- the Library associated with this resource, if any.
-
getLocalePrefix
public String getLocalePrefix()
- Returns:
- the Locale prefix, if any.
-
getName
public String getName()
- Returns:
- return the library name.
-
getPath
public String getPath()
- Returns:
- the full path (including the library, if any) of the resource.
-
getContract
public String getContract()
-
getVersion
public VersionInfo getVersion()
- Returns:
- return the version of the resource, or
null
if the resource isn't versioned.
-
-