org.apache.shale.clay.component.chain
Class CreateValidatorCommand

java.lang.Object
  extended by org.apache.shale.clay.component.chain.AbstractCommand
      extended by org.apache.shale.clay.component.chain.CreateValidatorCommand
All Implemented Interfaces:
Command

public class CreateValidatorCommand
extends AbstractCommand

Creates an object implementing the Validator interface and assigns it to the parent from the ClayContext.


Field Summary
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
CreateValidatorCommand()
           
 
Method Summary
 boolean execute(Context context)
           Creates a faces validator object that is registered in the faces-config.xml file and assigns it to the parent.
 
Methods inherited from class org.apache.shale.clay.component.chain.AbstractCommand
getCatalog, getCustomizationCatalog, getMessages, getTagUtils, isValueReference, realizeSymbols, replaceMnemonic, replaceMnemonic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateValidatorCommand

public CreateValidatorCommand()
Method Detail

execute

public boolean execute(Context context)
                throws Exception

Creates a faces validator object that is registered in the faces-config.xml file and assigns it to the parent.

Specified by:
execute in interface Command
Specified by:
execute in class AbstractCommand
Parameters:
context - commons chains
Returns:
true if the chain is final
Throws:
Exception - propagated to the top chain


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.