Top Description Inners Fields Constructors Methods
com.sun.faces.facelets.tag

public final Class MethodRule

extends MetaRule
Class Inheritance
Imports
com.sun.faces.facelets.el.LegacyMethodBinding, javax.el.MethodExpression, javax.faces.el.MethodBinding, javax.faces.view.facelets.*, java.lang.reflect.InvocationTargetException, .Method

Optional Rule for binding Method[Binding|Expression] properties
Authors
Mike Kienenberger, Jacob Hookom

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Field Summary

Modifier and TypeField and Description
private final String
private final Class<T>[]
private final Class<T>

Constructor Summary

AccessConstructor and Description
public
MethodRule(String methodName, Class<T> returnTypeClass, Class<T>[] params)

Method Summary

Modifier and TypeMethod and Description
public Metadata
applyRule(String
the name for this rule. This will generally be the name of a tag attribute in the VDL.
name
,
TagAttribute
the name/value pair for this attribute on this particular instance of an element in the page.
attribute
,
MetadataTarget
the MetadataTarged that can be used to discern what kind of action to encapsulate within the abstraction to be returned.
meta
)

Implements abstract javax.faces.view.facelets.MetaRule.applyRule.

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 of MetaRule.

Field Detail

methodNameback to summary
private final String methodName
paramsback to summary
private final Class<T>[] params
returnTypeClassback to summary
private final Class<T> returnTypeClass

Constructor Detail

MethodRuleback to summary
public MethodRule(String methodName, Class<T> returnTypeClass, Class<T>[] params)

Method Detail

applyRuleback to summary
public Metadata applyRule(String name, TagAttribute attribute, MetadataTarget meta)

Implements abstract javax.faces.view.facelets.MetaRule.applyRule.

Doc from javax.faces.view.facelets.MetaRule.applyRule.

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 of MetaRule. The abstraction must encapsulate the value from the argument attribute.

Parameters
name:String

the name for this rule. This will generally be the name of a tag attribute in the VDL.

attribute:TagAttribute

the name/value pair for this attribute on this particular instance of an element in the page.

meta:MetadataTarget

the MetadataTarged that can be used to discern what kind of action to encapsulate within the abstraction to be returned.

Returns:Metadata

the Metadata.

Annotations
@Override
com.sun.faces.facelets.tag back to summary

private Class MethodRule.MethodBindingMetadata

extends Metadata
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final TagAttribute
private final Method
private Class<T>[]
private Class<T>

Constructor Summary

AccessConstructor and Description
public
MethodBindingMetadata(Method method, TagAttribute attribute, Class<T> returnType, Class<T>[] paramList)

Method Summary

Modifier and TypeMethod and Description
public void
applyMetadata(FaceletContext
The FaceletContext for this request.
ctx
,
Object
The instance from the JSF Java API on which the action should be taken. For example, an instance of javax.faces.component.EditableValueHolder.
instance
)

Implements abstract javax.faces.view.facelets.Metadata.applyMetadata.

Take the action prescribed in the JSF specification for this particular VDL element attribute.

Field Detail

_attributeback to summary
private final TagAttribute _attribute
_methodback to summary
private final Method _method
_paramListback to summary
private Class<T>[] _paramList
_returnTypeback to summary
private Class<T> _returnType

Constructor Detail

MethodBindingMetadataback to summary
public MethodBindingMetadata(Method method, TagAttribute attribute, Class<T> returnType, Class<T>[] paramList)

Method Detail

applyMetadataback to summary
public void applyMetadata(FaceletContext ctx, Object instance)

Implements abstract javax.faces.view.facelets.Metadata.applyMetadata.

Doc from javax.faces.view.facelets.Metadata.applyMetadata.

Take the action prescribed in the JSF specification for this particular VDL element attribute.

Parameters
ctx:FaceletContext

The FaceletContext for this request.

instance:Object

The instance from the JSF Java API on which the action should be taken. For example, an instance of javax.faces.component.EditableValueHolder.

Annotations
@Override
com.sun.faces.facelets.tag back to summary

private Class MethodRule.MethodExpressionMetadata

extends Metadata
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final TagAttribute
private final Method
private Class<T>[]
private Class<T>

Constructor Summary

AccessConstructor and Description
public
MethodExpressionMetadata(Method method, TagAttribute attribute, Class<T> returnType, Class<T>[] paramList)

Method Summary

Modifier and TypeMethod and Description
public void
applyMetadata(FaceletContext
The FaceletContext for this request.
ctx
,
Object
The instance from the JSF Java API on which the action should be taken. For example, an instance of javax.faces.component.EditableValueHolder.
instance
)

Implements abstract javax.faces.view.facelets.Metadata.applyMetadata.

Take the action prescribed in the JSF specification for this particular VDL element attribute.

Field Detail

_attributeback to summary
private final TagAttribute _attribute
_methodback to summary
private final Method _method
_paramListback to summary
private Class<T>[] _paramList
_returnTypeback to summary
private Class<T> _returnType

Constructor Detail

MethodExpressionMetadataback to summary
public MethodExpressionMetadata(Method method, TagAttribute attribute, Class<T> returnType, Class<T>[] paramList)

Method Detail

applyMetadataback to summary
public void applyMetadata(FaceletContext ctx, Object instance)

Implements abstract javax.faces.view.facelets.Metadata.applyMetadata.

Doc from javax.faces.view.facelets.Metadata.applyMetadata.

Take the action prescribed in the JSF specification for this particular VDL element attribute.

Parameters
ctx:FaceletContext

The FaceletContext for this request.

instance:Object

The instance from the JSF Java API on which the action should be taken. For example, an instance of javax.faces.component.EditableValueHolder.

Annotations
@Override