info.magnolia.commands.impl
Class LogCommand

java.lang.Object
  extended by info.magnolia.commands.MgnlCommand
      extended by info.magnolia.commands.impl.LogCommand
All Implemented Interfaces:
org.apache.commons.chain.Command

public class LogCommand
extends MgnlCommand

Command outputting the value of "message" property into current log file. Used to monitor execution of workflow or other sorts of command chains.

Version:
$Id: LogCommand.java 36506 2010-08-18 12:05:34Z had $
Author:
pbracher

Field Summary
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
LogCommand()
           
 
Method Summary
 boolean execute(Context ctx)
           
 java.lang.String getLog()
           
protected  org.slf4j.Logger getLogger()
           
 java.lang.String getMsg()
           
 void release()
          If a clone is passivated we call this method.
 void setLog(java.lang.String log)
           
 void setMsg(java.lang.String msg)
           
 
Methods inherited from class info.magnolia.commands.MgnlCommand
execute, isClone, isEnabled, setClone, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogCommand

public LogCommand()
Method Detail

execute

public boolean execute(Context ctx)
                throws java.lang.Exception
Specified by:
execute in class MgnlCommand
Throws:
java.lang.Exception

getMsg

public java.lang.String getMsg()

setMsg

public void setMsg(java.lang.String msg)

getLog

public java.lang.String getLog()

setLog

public void setLog(java.lang.String log)

getLogger

protected org.slf4j.Logger getLogger()

release

public void release()
Description copied from class: MgnlCommand
If a clone is passivated we call this method. Please clean up private properties.

Overrides:
release in class MgnlCommand


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.