|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.myfaces.component.html.util.ParameterResourceHandler
| Constructor Summary | |
ParameterResourceHandler(java.lang.Class resourceLoaderClass,
java.util.Map parameters)
|
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Must be implemented to avoid loading the same resource multiple times. |
java.lang.Class |
getResourceLoaderClass()
Return a Class object whose instance can decode the url generated by this class in the getResourceUri method and use that info to locate the resource data represented by this object. |
java.lang.String |
getResourceUri(javax.faces.context.FacesContext context)
Returns the uri part which is used by the resourceloader to identify the resource to load. |
int |
hashCode()
Must always be implemented when equals is overridden. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ParameterResourceHandler(java.lang.Class resourceLoaderClass,
java.util.Map parameters)
resourceLoaderClass - parameters - | Method Detail |
public java.lang.Class getResourceLoaderClass()
ResourceHandler
getResourceLoaderClass in interface ResourceHandlerResourceHandler.getResourceLoaderClass()public java.lang.String getResourceUri(javax.faces.context.FacesContext context)
ResourceHandler
getResourceUri in interface ResourceHandlerResourceHandler.getResourceUri(javax.faces.context.FacesContext)public boolean equals(java.lang.Object obj)
ResourceHandlerWhen the same component is used multiple times in a page and that component needs an external resource such as a script, multiple calls will be made to the AddResource methods for the same resource. The AddResource class will create an instance of this class for each such call. However if there is already a ResourceHandler instance existing which is "equal" to the newly created one then a duplicate will not be queued for output.
equals in interface ResourceHandlerObject.equals(java.lang.Object)public int hashCode()
ResourceHandler
hashCode in interface ResourceHandlerObject.hashCode()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||