Package javax.faces.view.facelets
Class DelegatingMetaTagHandler
- java.lang.Object
-
- javax.faces.view.facelets.TagHandler
-
- javax.faces.view.facelets.MetaTagHandler
-
- javax.faces.view.facelets.DelegatingMetaTagHandler
-
- All Implemented Interfaces:
FaceletHandler
- Direct Known Subclasses:
ComponentHandler,FaceletsAttachedObjectHandler
public abstract class DelegatingMetaTagHandler extends MetaTagHandler
Enable the JSF implementation to provide the appropriate behavior for the kind of
MetaTagHandlersubclass for each kind of element in the view, while providing a base-class from which those wanting to make a Java language custom tag handler can inherit. The JSF runtime provides the implementation ofgetTagHandlerDelegate()for the appropriate subclass.
-
-
Field Summary
Fields Modifier and Type Field Description protected TagHandlerDelegateFactorydelegateFactory-
Fields inherited from class javax.faces.view.facelets.TagHandler
nextHandler, tag, tagId
-
-
Constructor Summary
Constructors Constructor Description DelegatingMetaTagHandler(TagConfig config)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidapply(FaceletContext ctx, UIComponent parent)The default implementation simply calls through toTagHandlerDelegate.apply(javax.faces.view.facelets.FaceletContext, javax.faces.component.UIComponent).voidapplyNextHandler(FaceletContext ctx, UIComponent c)Invoke theapply()method on this instance'sTagHandler.nextHandler.protected MetaRulesetcreateMetaRuleset(java.lang.Class type)The default implementation simply calls through toTagHandlerDelegate.createMetaRuleset(java.lang.Class)and returns the result.TagAttributegetBinding()TaggetTag()TagAttributegetTagAttribute(java.lang.String localName)protected abstract TagHandlerDelegategetTagHandlerDelegate()java.lang.StringgetTagId()booleanisDisabled(FaceletContext ctx)voidsetAttributes(FaceletContext ctx, java.lang.Object instance)Invoking/extending this method will cause the results of the created MetaRuleset to auto-wire state to the passed instance.-
Methods inherited from class javax.faces.view.facelets.TagHandler
getAttribute, getRequiredAttribute, toString
-
-
-
-
Field Detail
-
delegateFactory
protected TagHandlerDelegateFactory delegateFactory
-
-
Constructor Detail
-
DelegatingMetaTagHandler
public DelegatingMetaTagHandler(TagConfig config)
-
-
Method Detail
-
getTagHandlerDelegate
protected abstract TagHandlerDelegate getTagHandlerDelegate()
-
isDisabled
public boolean isDisabled(FaceletContext ctx)
-
getBinding
public TagAttribute getBinding()
-
getTag
public Tag getTag()
-
getTagId
public java.lang.String getTagId()
-
getTagAttribute
public TagAttribute getTagAttribute(java.lang.String localName)
-
setAttributes
public void setAttributes(FaceletContext ctx, java.lang.Object instance)
Description copied from class:MetaTagHandlerInvoking/extending this method will cause the results of the created MetaRuleset to auto-wire state to the passed instance.- Overrides:
setAttributesin classMetaTagHandler
-
apply
public void apply(FaceletContext ctx, UIComponent parent) throws java.io.IOException
The default implementation simply calls through to
TagHandlerDelegate.apply(javax.faces.view.facelets.FaceletContext, javax.faces.component.UIComponent).- Parameters:
ctx- theFaceletContextfor this view executionparent- the parentUIComponentof the component represented by this element instance.- Throws:
java.io.IOException- if unable to loadrelativePath- Since:
- 2.0
-
applyNextHandler
public void applyNextHandler(FaceletContext ctx, UIComponent c) throws java.io.IOException, FacesException, javax.el.ELException
Invoke the
apply()method on this instance'sTagHandler.nextHandler.- Parameters:
ctx- theFaceletContextfor this view executionc- theUIComponentof the component represented by this element instance.- Throws:
java.io.IOExceptionFacesExceptionjavax.el.ELException- Since:
- 2.0
-
createMetaRuleset
protected MetaRuleset createMetaRuleset(java.lang.Class type)
The default implementation simply calls through to
TagHandlerDelegate.createMetaRuleset(java.lang.Class)and returns the result.- Specified by:
createMetaRulesetin classMetaTagHandler- Parameters:
type- theClassfor which theMetaRulesetmust be created.- Since:
- 2.0
-
-