|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.tubo.resource.baseimpl.BaseResourceImpl org.tubo.resource.consumer.BaseConsumerImpl
public class BaseConsumerImpl
Created: Jun 21, 2005 6:59:48 AM Last Modification Date: $Date: 2006-12-15 18:44:02 -0300 (Fri, 15 Dec 2006) $
Field Summary | |
---|---|
static java.lang.String |
RCS_ID
|
Constructor Summary | |
---|---|
BaseConsumerImpl()
Default empty constructor |
Method Summary | |
---|---|
protected Event |
createEvent()
Create a new Item instance using ResourceManager |
protected FlowContext |
createFlowContext()
Create a new FlowContext instance using ResourceManager |
protected Item |
createItem()
Create a new Item instance using ResourceManager |
protected FlowContext |
dispatchOriginFlowEvent(Event event,
Item item)
|
protected FlowContext |
doConsumerLifeCycle(java.lang.String eventAction,
java.lang.Object consumedRawData)
This method is a template method with the life cycle of the consumption process. |
protected void |
initializeEvent(Event event)
LifeCycle Hook used by subclasses to do a custom Event setup |
protected void |
initializeItem(Item item)
LifeCycle Hook used by subclasses to make a custom Event setup |
protected void |
postOriginFlowEvent(FlowContext flowContext)
LifeCycle Hook used by subclasses to execute post event actions |
protected void |
preOriginFlowEvent(FlowContext flowContext)
LifeCycle Hook used by subclasses to execute pre event actions |
void |
setListener(ConsumerListener listener)
|
Methods inherited from class org.tubo.resource.baseimpl.BaseResourceImpl |
---|
getId, getProperties, getProperty, getResourceManager, setId, setProperties, setProperty, setResourceManager |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.tubo.resource.consumer.Consumer |
---|
getId |
Field Detail |
---|
public static final java.lang.String RCS_ID
Constructor Detail |
---|
public BaseConsumerImpl()
Method Detail |
---|
public void setListener(ConsumerListener listener)
setListener
in interface Consumer
protected FlowContext doConsumerLifeCycle(java.lang.String eventAction, java.lang.Object consumedRawData)
eventAction
- consumedRawData
-
protected Event createEvent()
protected void initializeEvent(Event event)
event
- Event to be configuredprotected Item createItem()
protected void initializeItem(Item item)
item
- Item to be configuredprotected FlowContext dispatchOriginFlowEvent(Event event, Item item)
protected FlowContext createFlowContext()
protected void preOriginFlowEvent(FlowContext flowContext)
flowContext
- FlowContext to be used on this eventprotected void postOriginFlowEvent(FlowContext flowContext)
flowContext
- FlowContext used on this event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |