Package com.sun.faces.facelets.tag
Class MethodRule
java.lang.Object
jakarta.faces.view.facelets.MetaRule
com.sun.faces.facelets.tag.MethodRule
public final class MethodRule extends MetaRule
Optional Rule for binding Method[Binding|Expression] properties
- Author:
- Mike Kienenberger, Jacob Hookom
-
Constructor Summary
Constructors Constructor Description MethodRule(String methodName, Class returnTypeClass, Class[] params)
-
Method Summary
Modifier and Type Method Description Metadata
applyRule(String name, TagAttribute attribute, MetadataTarget meta)
Return an abstraction that takes appropriate action given the kind of rule represented by the argumentname
, in the context of this particular concrete subclass ofMetaRule
.
-
Constructor Details
-
Method Details
-
applyRule
Description copied from class:MetaRule
Return an abstraction that takes appropriate action given the kind of rule represented by the argument
name
, in the context of this particular concrete subclass ofMetaRule
. The abstraction must encapsulate the value from the argumentattribute
.- Specified by:
applyRule
in classMetaRule
- Parameters:
name
- the name for this rule. This will generally be the name of a tag attribute in the VDL.attribute
- the name/value pair for this attribute on this particular instance of an element in the page.meta
- theMetadataTarged
that can be used to discern what kind of action to encapsulate within the abstraction to be returned.- Returns:
- the
Metadata
.
-