org.oddjob.framework
Class ServiceStrategies

java.lang.Object
  extended by org.oddjob.framework.ServiceStrategies
All Implemented Interfaces:
ServiceStrategy

public class ServiceStrategies
extends Object
implements ServiceStrategy

A collection of different strategies that are applied to a component to see if it can be adapted to a Service.

Author:
rob

Constructor Summary
ServiceStrategies()
           
 
Method Summary
 ServiceStrategy hasServiceAnnotationsStrategy()
           
 ServiceStrategy hasServiceMethodsStrategy()
           
 ServiceStrategy isServiceAlreadyStrategy()
          Provides a strategy that checks to see if the component is a Service already.
 ServiceAdaptor serviceFor(Object component, ArooaSession session)
          Attempt to provide an adaptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceStrategies

public ServiceStrategies()
Method Detail

serviceFor

public ServiceAdaptor serviceFor(Object component,
                                 ArooaSession session)
Description copied from interface: ServiceStrategy
Attempt to provide an adaptor.

Specified by:
serviceFor in interface ServiceStrategy
Parameters:
component - The component.
Returns:
The adaptor or null if this strategy can not provide the adaptor.

isServiceAlreadyStrategy

public ServiceStrategy isServiceAlreadyStrategy()
Provides a strategy that checks to see if the component is a Service already.

Returns:

hasServiceMethodsStrategy

public ServiceStrategy hasServiceMethodsStrategy()

hasServiceAnnotationsStrategy

public ServiceStrategy hasServiceAnnotationsStrategy()