com.espertech.esper.plugin
Interface PlugInEventBeanFactory


public interface PlugInEventBeanFactory

Factory for creating EventBean event object wrapper for a plug-in event representation.

Implementations typically reflect on the event object to be processed and decides on the proper EventType to assign. If the implementation finds that it cannot handle the event object, it should return null. Returning null gives another instance of this class as specified by the list of URI to handle the event object.


Method Summary
 EventBean create(java.lang.Object theEvent, java.net.URI resolutionURI)
          Returns an event wrapper for the event object specific to the plug-in event representation or using one of the built-in types, or null if the event object is unknown and cannot be handled.
 

Method Detail

create

EventBean create(java.lang.Object theEvent,
                 java.net.URI resolutionURI)
Returns an event wrapper for the event object specific to the plug-in event representation or using one of the built-in types, or null if the event object is unknown and cannot be handled.

Parameters:
theEvent - is the event object to reflect upon and wrap
resolutionURI - is the URI used originally for obtaining the event sender
Returns:
wrapped event object, or null if the event is of unknown type or content

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com