org.apache.velocity.app.event

Interface NullSetEventHandler

All Superinterfaces:
EventHandler
Known Implementing Classes:
EventCartridge, EventHandlingTestCase, Test

public interface NullSetEventHandler
extends EventHandler

Event handler : lets an app approve / veto writing a log message when RHS of #set() is null.

Version:
$Id: NullSetEventHandler.java,v 1.2 2001/05/20 21:09:04 geirm Exp $

Author:
Geir Magnusson Jr.

Nested Class Summary

Method Summary

boolean
shouldLogOnNullSet(String lhs, String rhs)
Called when the RHS of a #set() is null, which will result in a null LHS.

Method Details

shouldLogOnNullSet

public boolean shouldLogOnNullSet(String lhs,
                                  String rhs)
Called when the RHS of a #set() is null, which will result in a null LHS.

Parameters:
lhs - reference literal of left-hand-side of set statement
rhs - reference literal of right-hand-side of set statement

Returns:
true if log message should be written, false otherwise


Copyright © 2003 Apache Software Foundation. All Rights Reserved.