org.eclipse.swordfish.core.planner.strategy
Interface Hint<T>

Type Parameters:
T - the class of the information object wrapped by the Hint instance.
All Known Implementing Classes:
AssertionHint, DefaultHint

public interface Hint<T>

A Hint is a piece of information extracted from a message exchange by a HintExtractor. A List of Hints is passed to the FilterStrategy and SortingStrategy which may use these Hints in order to modify the interceptor chain in an appropriate way for processing of the current message exchange. The Swordfish core itself does not make any assumptions on these hints.


Method Summary
 T getInfo()
          Get the information object wrapped by the receiver.
 java.lang.Class<T> getType()
          Indicate the class/interface of the information object wrapped by the receiver.
 

Method Detail

getType

java.lang.Class<T> getType()
Indicate the class/interface of the information object wrapped by the receiver.

Returns:
the information object class.

getInfo

T getInfo()
Get the information object wrapped by the receiver.

Returns:
the information extracted from the message exchange (must not be null).