Package org.smooks.api.delivery.ordering
Interface Consumer
-
- All Superinterfaces:
ContentHandler
,Visitor
- All Known Implementing Classes:
AbstractOutputStreamResource
,StaticProxyInterceptor
public interface Consumer extends Visitor
Object Consumer interface. A consumer is aVisitor
that "consumes" a named object that has been added to theExecutionContext
by aProducer
of some sort.- Since:
- 1.2
- Author:
- tom.fennelly@jboss.com
- See Also:
Producer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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 aProducer
that is executing on the same element. The consumer should only returnfalse
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.
-
-