public class ImportConstantsTagHandler
extends javax.faces.view.facelets.TagHandler
TagHandler for the ImportConstants component.| Constructor and Description |
|---|
ImportConstantsTagHandler(javax.faces.view.facelets.TagConfig config)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(javax.faces.view.facelets.FaceletContext ctx,
javax.faces.component.UIComponent parent) |
protected java.util.Map<java.lang.String,java.lang.Object> |
collectConstants(java.lang.Class<?> clazz)
Collects all constants of the given
Class. |
protected java.lang.Class<?> |
getClassFromAttribute(javax.faces.view.facelets.TagAttribute attribute,
javax.faces.view.facelets.FaceletContext ctx)
Gets the
Class from the TagAttribute. |
protected java.util.Map<java.lang.String,java.lang.Object> |
getConstants(java.lang.Class<?> clazz)
Get all constants of the given
Class. |
public ImportConstantsTagHandler(javax.faces.view.facelets.TagConfig config)
config - The TagConfig.public void apply(javax.faces.view.facelets.FaceletContext ctx,
javax.faces.component.UIComponent parent)
throws java.io.IOException
java.io.IOExceptionprotected java.lang.Class<?> getClassFromAttribute(javax.faces.view.facelets.TagAttribute attribute,
javax.faces.view.facelets.FaceletContext ctx)
Class from the TagAttribute.attribute - The TagAttribute.ctx - The FaceletContext.Class.protected java.util.Map<java.lang.String,java.lang.Object> getConstants(java.lang.Class<?> clazz)
Class.clazz - The class which includes the constants.Map with the constants.protected java.util.Map<java.lang.String,java.lang.Object> collectConstants(java.lang.Class<?> clazz)
Class.clazz - The class which includes the constants.Map with the found constants.Copyright © 2011-2015. All Rights Reserved.