org.oddjob.framework
Class ServiceStrategies
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceStrategies
public ServiceStrategies()
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()