|
ICEfaces Core 3.3.0 Java API Documentation |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.application.ResourceHandler
javax.faces.application.ResourceHandlerWrapper
org.icefaces.application.ResourceRegistry
public class ResourceRegistry
The ResourceRegistry
allows an application to register
javax.faces.application.Resource instances at runtime. Each Resource
is registered in a specified scope (Application, Session, View, Flash
Window) so that the resource can be garbage collected when the scope
expires.
Field Summary |
---|
Fields inherited from class javax.faces.application.ResourceHandler |
---|
LOCALE_PREFIX, RESOURCE_EXCLUDES_DEFAULT_VALUE, RESOURCE_EXCLUDES_PARAM_NAME, RESOURCE_IDENTIFIER |
Constructor Summary | |
---|---|
ResourceRegistry(javax.faces.application.ResourceHandler wrapped)
|
Method Summary | |
---|---|
static java.lang.String |
addApplicationResource(javax.faces.application.Resource resource)
Add the provided resource in application scope. |
static java.lang.String |
addFlashResource(javax.faces.application.Resource resource)
Add the provided resource in flash scope. |
static java.lang.String |
addResource(java.util.Map scopeMap,
javax.faces.application.Resource resource)
Add the provided resource to the custom scope Map. |
static java.lang.String |
addSessionResource(javax.faces.application.Resource resource)
Add the provided resource in session scope. |
static java.lang.String |
addViewResource(javax.faces.application.Resource resource)
Add the provided resource in view scope. |
static java.lang.String |
addWindowResource(javax.faces.application.Resource resource)
Add the provided resource in window scope. |
static javax.faces.application.Resource |
getResourceByPath(javax.faces.context.FacesContext facesContext,
java.lang.String resPath)
|
javax.faces.application.ResourceHandler |
getWrapped()
|
void |
handleResourceRequest(javax.faces.context.FacesContext facesContext)
|
Methods inherited from class javax.faces.application.ResourceHandlerWrapper |
---|
createResource, createResource, createResource, getRendererTypeForResourceName, isResourceRequest, libraryExists |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceRegistry(javax.faces.application.ResourceHandler wrapped)
Method Detail |
---|
public javax.faces.application.ResourceHandler getWrapped()
getWrapped
in interface javax.faces.FacesWrapper<javax.faces.application.ResourceHandler>
getWrapped
in class javax.faces.application.ResourceHandlerWrapper
public void handleResourceRequest(javax.faces.context.FacesContext facesContext) throws java.io.IOException
handleResourceRequest
in class javax.faces.application.ResourceHandlerWrapper
java.io.IOException
public static java.lang.String addResource(java.util.Map scopeMap, javax.faces.application.Resource resource)
scopeMap
- the resourcescopeMap
- the resource
public static javax.faces.application.Resource getResourceByPath(javax.faces.context.FacesContext facesContext, java.lang.String resPath)
public static java.lang.String addApplicationResource(javax.faces.application.Resource resource)
resource
- the resource
public static java.lang.String addSessionResource(javax.faces.application.Resource resource)
resource
- the resource
public static java.lang.String addFlashResource(javax.faces.application.Resource resource)
resource
- the resource
public static java.lang.String addViewResource(javax.faces.application.Resource resource)
resource
- the resource
public static java.lang.String addWindowResource(javax.faces.application.Resource resource)
resource
- the resource
|
ICEfaces Core 3.3.0 Java API Documentation |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |