Package com.sun.faces.facelets.tag
Class CompositeTagDecorator
- java.lang.Object
-
- com.sun.faces.facelets.tag.CompositeTagDecorator
-
- All Implemented Interfaces:
TagDecorator
public final class CompositeTagDecorator extends Object implements TagDecorator
A TagDecorator that is composed of 1 or more TagDecorator instances. It uses the chain of responsibility pattern to stop processing if any of the TagDecorators return a value other than null.- Version:
- $Id$
- Author:
- Jacob Hookom
-
-
Constructor Summary
Constructors Constructor Description CompositeTagDecorator(TagDecorator[] decorators)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tag
decorate(Tag tag)
Uses the chain of responsibility pattern to stop processing if any of the TagDecorators return a value other than null.
-
-
-
Constructor Detail
-
CompositeTagDecorator
public CompositeTagDecorator(TagDecorator[] decorators)
-
-
Method Detail
-
decorate
public Tag decorate(Tag tag)
Uses the chain of responsibility pattern to stop processing if any of the TagDecorators return a value other than null.- Specified by:
decorate
in interfaceTagDecorator
- Parameters:
tag
- tag to be decorated- Returns:
- a decorated tag, otherwise null
-
-