javax.rules
Interface ObjectFilter

All Superinterfaces:
java.io.Serializable

public interface ObjectFilter
extends java.io.Serializable

This interface is used to filter objects. The caller passes an implementation of this interface to a method and receives callbacks that allow the caller to filter the output objects as desired. Filters can either build up state within themselves or can merely block or pass objects based on a filtering algorithm.


Method Summary
 java.lang.Object filter(java.lang.Object obj)
          The main filtering method on the interface.
 void reset()
          Stateful filters should implement this interface to allow them to be reset to an intial state.
 

Method Detail

filter

public java.lang.Object filter(java.lang.Object obj)
The main filtering method on the interface.

Parameters:
obj - the object to be filtered.
Returns:
the result of the filtering or null.

reset

public void reset()
Stateful filters should implement this interface to allow them to be reset to an intial state.
Note: The reset method on the ObjectFilter is not called when a StatefulRuleSession resets.



Copyright © 2004 Java Community Process. All Rights Reserved.