org.yestech.event.listener
Interface IAggregateListener<EVENT extends IEvent,RESULT>

Type Parameters:
EVENT - An instance of IEvent
RESULT - The result object
All Superinterfaces:
IListener<EVENT,RESULT>

public interface IAggregateListener<EVENT extends IEvent,RESULT>
extends IListener<EVENT,RESULT>

Represents a Listener that is executed by a IEventMulticaster. The result from the Execution will be aggregated in a AggregateResultReference for access by the caller. The contract is still the same as IListener.


Method Summary
 Enum<?> getToken()
          Return the Token to associate the result.
 void setToken(Enum<?> token)
          Set the token to use in association.
 
Methods inherited from interface org.yestech.event.listener.IListener
deregister, getMulticaster, handle, register, setMulticaster
 

Method Detail

getToken

Enum<?> getToken()
Return the Token to associate the result.

Returns:
the Token

setToken

void setToken(Enum<?> token)
Set the token to use in association.

Parameters:
token - The Token


Copyright © 2010 YES Technology Association. All Rights Reserved.