public class ServiceStrategies extends java.lang.Object implements ServiceStrategy, AdaptorFactory<ServiceAdaptor>
Service
.Modifier and Type | Class and Description |
---|---|
static class |
ServiceStrategies.HasServiceAnnotationsStrategy |
static class |
ServiceStrategies.HasServiceMethodsStrategy |
static class |
ServiceStrategies.IsServiceAlreadyStrategy
Provides a strategy that checks to see if the component is a
Service already. |
Constructor and Description |
---|
ServiceStrategies() |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<ServiceAdaptor> |
adapt(java.lang.Object component,
ArooaSession session)
Maybe provide a adaptor for the component.
|
ServiceAdaptor |
serviceFor(java.lang.Object component,
ArooaSession session)
Attempt to provide an adaptor.
|
public java.util.Optional<ServiceAdaptor> adapt(java.lang.Object component, ArooaSession session)
AdaptorFactory
adapt
in interface AdaptorFactory<ServiceAdaptor>
adapt
in interface ServiceStrategy
component
- The component that the adapter will be for.session
- The session for descriptor and tools.public ServiceAdaptor serviceFor(java.lang.Object component, ArooaSession session)
ServiceStrategy
serviceFor
in interface ServiceStrategy
component
- The component.session
- A session that might be useful.