org.milyn.delivery.ordering
Interface Consumer

All Superinterfaces:
ContentHandler, Visitor
All Known Implementing Classes:
AbstractOutputStreamResource

public interface Consumer
extends Visitor

Object Consumer interface.

A consumer is a Visitor that "consumes" a named object that has been added to the ExecutionContext by a Producer of some sort.

Since:
1.2
Author:
tom.fennelly@jboss.com
See Also:
Producer

Method Summary
 boolean consumes(Object object)
          Does this consumer consume the specified named object.
 

Method Detail

consumes

boolean consumes(Object object)
Does this consumer consume the specified named object.

The named object would be a product of a Producer that is executing on the same element. The consumer should only return false if it knows for certain that it doesn't consumer the specified named object. If uncertain, it should error on the side of saying that it does consume the object.

Parameters:
object - The product representation
Returns:
True if the consumer consumes the specified product, otherwise false.


Copyright © 2009. All Rights Reserved.