org.oddjob.beanbus.mega
Class OutboundStrategies

java.lang.Object
  extended by org.oddjob.beanbus.mega.OutboundStrategies
All Implemented Interfaces:
OutboundStrategy

public class OutboundStrategies
extends Object
implements OutboundStrategy

A collection of different OutboundStrategys that are applied to a component to see if it can be adapted to an Outbound.

Author:
rob

Constructor Summary
OutboundStrategies()
           
 
Method Summary
 OutboundStrategy hasDestinationAnnotationStrategy()
          Provides a strategy base on the Destination annotation.
 OutboundStrategy isOutboundAlreadyStrategy()
          Provides a strategy that checks to see if the component is a Outbound already.
<T> Outbound<T>
outboundFor(Object component, ArooaSession session)
          Attempt to provide an Outbound.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutboundStrategies

public OutboundStrategies()
Method Detail

outboundFor

public <T> Outbound<T> outboundFor(Object component,
                                   ArooaSession session)
Description copied from interface: OutboundStrategy
Attempt to provide an Outbound.

Specified by:
outboundFor in interface OutboundStrategy
Parameters:
component - The component or its proxy.
Returns:
An Outbound or null if this strategy can not provide it.

isOutboundAlreadyStrategy

public OutboundStrategy isOutboundAlreadyStrategy()
Provides a strategy that checks to see if the component is a Outbound already.

Returns:

hasDestinationAnnotationStrategy

public OutboundStrategy hasDestinationAnnotationStrategy()
Provides a strategy base on the Destination annotation.

Returns: