|
||||||||||
| 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
public class ParameterResourceHandler
| Constructor Summary | |
|---|---|
ParameterResourceHandler(Class resourceLoaderClass,
Map parameters)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Must be implemented to avoid loading the same resource multiple times. |
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. |
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(Class resourceLoaderClass,
Map parameters)
resourceLoaderClass - parameters - | Method Detail |
|---|
public Class getResourceLoaderClass()
ResourceHandler
getResourceLoaderClass in interface ResourceHandlerResourceHandler.getResourceLoaderClass()public String getResourceUri(javax.faces.context.FacesContext context)
ResourceHandler
getResourceUri in interface ResourceHandlerResourceHandler.getResourceUri(javax.faces.context.FacesContext)public boolean equals(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 ResourceHandlerequals in class ObjectObject.equals(java.lang.Object)public int hashCode()
ResourceHandler
hashCode in interface ResourceHandlerhashCode in class ObjectObject.hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||