Top Fields Constructors Methods
com.sun.faces.facelets.compiler

pack-priv final Class NamespaceHandler

extends FunctionMapper
implements FaceletHandler
Class Inheritance
All Implemented Interfaces
javax.faces.view.facelets.FaceletHandler
Imports
com.sun.faces.facelets.el.CompositeFunctionMapper, com.sun.faces.facelets.tag.TagLibrary, com.sun.faces.el.ELContextImpl, javax.el.FunctionMapper, .ELContext, javax.faces.component.UIComponent, javax.faces.view.facelets.FaceletContext, .FaceletHandler, javax.faces.context.FacesContext, java.io.IOException, java.lang.reflect.Method, java.util.Map

Field Summary

Modifier and TypeField and Description
private final TagLibrary
private FaceletHandler
private final Map<K, V>

Constructor Summary

AccessConstructor and Description
public
NamespaceHandler(FaceletHandler next, TagLibrary library, Map<K, V> ns)

Method Summary

Modifier and TypeMethod and Description
public void
apply(FaceletContext
the current FaceletContext instance for this execution
ctx
,
UIComponent
the parent UIComponent to operate upon
parent
)

Implements javax.faces.view.facelets.FaceletHandler.apply.

Process changes on a particular UIComponent

private void
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()}.
localName
)

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

libraryback to summary
private final TagLibrary library
nextback to summary
private FaceletHandler next
nsback to summary
private final Map<K, V> ns

Constructor Detail

NamespaceHandlerback to summary
public NamespaceHandler(FaceletHandler next, TagLibrary library, Map<K, V> ns)

Method Detail

applyback to summary
public void apply(FaceletContext ctx, UIComponent parent) throws IOException

Implements javax.faces.view.facelets.FaceletHandler.apply.

Doc from javax.faces.view.facelets.FaceletHandler.apply.

Process changes on a particular UIComponent

Parameters
ctx:FaceletContext

the current FaceletContext instance for this execution

parent:UIComponent

the parent UIComponent to operate upon

Annotations
@Override
Exceptions
IOException:
if unable to load relativePath
pushMapperback to summary
private void pushMapper(FacesContext ctx, FunctionMapper mapper)
resolveFunctionback to summary
public Method resolveFunction(String prefix, String localName)

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()}.

localName: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