public abstract class AbstractCloudConnector<SD> extends java.lang.Object implements CloudConnector
CloudConnector implementations.
User the ServiceLoader approach to looks for file name matching the class passed in constructor
and registers ServiceInfoCreator found there.
Implementation of CloudConnectors that wish to support the recommended service scanning approach
should extends this approach to gain that functionality automatically.| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<ServiceInfoCreator<?,SD>> |
serviceInfoCreators |
| Constructor and Description |
|---|
AbstractCloudConnector(java.lang.Class<? extends ServiceInfoCreator<? extends ServiceInfo,?>> serviceInfoCreatorClass) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract FallbackServiceInfoCreator<?,SD> |
getFallbackServiceInfoCreator() |
java.util.List<ServiceInfo> |
getServiceInfos()
Get
ServiceInfos for services bound to the app |
protected abstract java.util.List<SD> |
getServicesData() |
protected void |
registerServiceInfoCreator(ServiceInfoCreator<? extends ServiceInfo,SD> serviceInfoCreator) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetApplicationInstanceInfo, isInMatchingCloudprotected java.util.List<ServiceInfoCreator<?,SD>> serviceInfoCreators
public AbstractCloudConnector(java.lang.Class<? extends ServiceInfoCreator<? extends ServiceInfo,?>> serviceInfoCreatorClass)
protected abstract java.util.List<SD> getServicesData()
protected abstract FallbackServiceInfoCreator<?,SD> getFallbackServiceInfoCreator()
public java.util.List<ServiceInfo> getServiceInfos()
CloudConnectorServiceInfos for services bound to the appgetServiceInfos in interface CloudConnectorprotected void registerServiceInfoCreator(ServiceInfoCreator<? extends ServiceInfo,SD> serviceInfoCreator)