Top Description Fields Constructors Methods
com.sun.faces.facelets.el

public final Class CompositeFunctionMapper

extends FunctionMapper
Class Inheritance
Imports
javax.el.FunctionMapper, java.lang.reflect.Method

Composite FunctionMapper that attempts to load the Method from the first FunctionMapper, then the second if null.
Author
Jacob Hookom
Version
$Id$
See Also
javax.el.FunctionMapper, java.lang.reflect.Method

Field Summary

Modifier and TypeField and Description
private final FunctionMapper
private final FunctionMapper

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Method
resolveFunction(String
the prefix of the function, or "" if no prefix. For example, "fn" in ${fn:method()}, or "" in ${method()}.
prefix
,
String
the short name of the function. For example, "method" in ${fn:method()}.
name
)

Implements abstract javax.el.FunctionMapper.resolveFunction.

Resolves the specified prefix and local name into a java.lang.Method.
Inherited from javax.el.FunctionMapper:
mapFunction

Field Detail

fn0back to summary
private final FunctionMapper fn0
fn1back to summary
private final FunctionMapper fn1

Constructor Detail

CompositeFunctionMapperback to summary
public CompositeFunctionMapper(FunctionMapper fn0, FunctionMapper fn1)

Method Detail

resolveFunctionback to summary
public Method resolveFunction(String prefix, String name)

Implements abstract javax.el.FunctionMapper.resolveFunction.

Doc from javax.el.FunctionMapper.resolveFunction.

Resolves the specified prefix and local name into a java.lang.Method.

Returns null if no function could be found that matches the given prefix and local name.

Parameters
prefix:String

the prefix of the function, or "" if no prefix. For example, "fn" in ${fn:method()}, or "" in ${method()}.

name:String

the short name of the function. For example, "method" in ${fn:method()}.

Returns:Method

the static method to invoke, or null if no match was found.

Annotations
@Override
See Also
javax.el.FunctionMapper#resolveFunction(java.lang.String, java.lang.String)