com.opensymphony.workflow.util
Class LogRegister

java.lang.Object
  extended by com.opensymphony.workflow.util.LogRegister
All Implemented Interfaces:
Register

public class LogRegister
extends Object
implements Register

This is a register, which helps logging using commons-logging. It wraps a Logger instance which is linked to the "OSWorkflow//" category Following optional arguments available:

If you register this class as "Logger", then you may use it from a Beanshell script like:
 logger = transientVars.get("logger");
 logger.debug("hello logger!");
 

Author:
Zoltan Luspai

Constructor Summary
LogRegister()
           
 
Method Summary
 Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args, com.opensymphony.module.propertyset.PropertySet ps)
          Returns the object to bind to the variable map for this workflow instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogRegister

public LogRegister()
Method Detail

registerVariable

public Object registerVariable(WorkflowContext context,
                               WorkflowEntry entry,
                               Map args,
                               com.opensymphony.module.propertyset.PropertySet ps)
Description copied from interface: Register
Returns the object to bind to the variable map for this workflow instance.

Specified by:
registerVariable in interface Register
Parameters:
context - The current workflow context
entry - The workflow entry. Note that this might be null, for example in a pre function before the workflow has been initialised
args - Map of arguments as set in the workflow descriptor
Returns:
the object to bind to the variable map for this workflow instance
See Also:
Register.registerVariable(com.opensymphony.workflow.WorkflowContext,com.opensymphony.workflow.spi.WorkflowEntry,java.util.Map,PropertySet)

OpenSymphony Workflow Project Page