2.17.2: 2011-06-17

net.sf.basedb.clients.web.extensions.edit
Class DebugOnSaveActionFactory

java.lang.Object
  extended by net.sf.basedb.clients.web.extensions.AbstractJspFactory
      extended by net.sf.basedb.clients.web.extensions.AbstractJspActionFactory<OnSaveAction>
          extended by net.sf.basedb.clients.web.extensions.edit.DebugOnSaveActionFactory
All Implemented Interfaces:
ActionFactory<OnSaveAction>

public class DebugOnSaveActionFactory
extends AbstractJspActionFactory<OnSaveAction>

On-save action factory that create actions that print a log message to System.out for all events. Useful for debugging and testing.

Since:
2.17
Author:
Nicklas
Last modified
$Date: 2010-11-18 12:05:43 +0100 (Thu, 18 Nov 2010) $

Nested Class Summary
static class DebugOnSaveActionFactory.DebugOnSaveAction
           
 
Constructor Summary
DebugOnSaveActionFactory()
           
 
Method Summary
 OnSaveAction[] getActions(InvokationContext<? super OnSaveAction> context)
          This method may be called one or several times for each request.
 
Methods inherited from class net.sf.basedb.clients.web.extensions.AbstractJspActionFactory
prepareContext
 
Methods inherited from class net.sf.basedb.clients.web.extensions.AbstractJspFactory
getScripts, getStylesheets, prepareContext, setScript, setStylesheet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugOnSaveActionFactory

public DebugOnSaveActionFactory()
Method Detail

getActions

public OnSaveAction[] getActions(InvokationContext<? super OnSaveAction> context)
Description copied from interface: ActionFactory
This method may be called one or several times for each request. This is decided by the extension point. If, for example, the extension point is a pure single-item extension point then this method is probably only called once. If the extension point is a per-item extension point in a list context, then this method may be called once for every item in the list. The context parameter contains all information about the context of the extension point, including the current item, if any.

Parameters:
context - The current invokation context
Returns:
An array of actions that should be added to the extension point. Returns null or an empty array if there are no actions in the current context.

2.17.2: 2011-06-17