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

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

public class CreateConverterCommand
extends AbstractCommand

This Command will create a Converter from the displayElement attribute of the ClayContext assigning it to the parent.


Field Summary
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
CreateConverterCommand()
           
 
Method Summary
 boolean execute(Context context)
           Creates a object instance realizing the Converter interface assigning 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

CreateConverterCommand

public CreateConverterCommand()
Method Detail

execute

public boolean execute(Context context)
                throws Exception

Creates a object instance realizing the Converter interface assigning to the parent. The parent must implement the ValueHolder interface.

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


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