org.rhq.bundle.filetemplate.recipe
Class CommandRecipeCommand

java.lang.Object
  extended by org.rhq.bundle.filetemplate.recipe.CommandRecipeCommand
All Implemented Interfaces:
RecipeCommand

public class CommandRecipeCommand
extends Object
implements RecipeCommand

Declares that an existing script or shell command is to be invoked.

Author:
John Mazzitelli

Constructor Summary
CommandRecipeCommand()
           
 
Method Summary
 String getName()
          The name of the recipe command.
 void parse(RecipeParser parser, RecipeContext context, String[] args)
          Parses this recipe command and optionally puts information in the context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandRecipeCommand

public CommandRecipeCommand()
Method Detail

getName

public String getName()
Description copied from interface: RecipeCommand
The name of the recipe command. This must be the first word in the recipe line in order for this command to be triggered.

Specified by:
getName in interface RecipeCommand
Returns:
name of the recipe command

parse

public void parse(RecipeParser parser,
                  RecipeContext context,
                  String[] args)
Description copied from interface: RecipeCommand
Parses this recipe command and optionally puts information in the context.

Specified by:
parse in interface RecipeCommand
context - information where the parser can store information regarding the command that was processed
args - arguments passed to the command.


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.