public interface ServiceStrategy extends AdaptorFactory<ServiceAdaptor>
Modifier and Type | Method and Description |
---|---|
default 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.
|
default java.util.Optional<ServiceAdaptor> adapt(java.lang.Object component, ArooaSession session)
AdaptorFactory
adapt
in interface AdaptorFactory<ServiceAdaptor>
component
- The component that the adapter will be for.session
- The session for descriptor and tools.ServiceAdaptor serviceFor(java.lang.Object component, ArooaSession session)
component
- The component.session
- A session that might be useful.