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 CloudConnector
s 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
ServiceInfo s 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, wait
getApplicationInstanceInfo, isInMatchingCloud
protected 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()
CloudConnector
ServiceInfo
s for services bound to the appgetServiceInfos
in interface CloudConnector
protected void registerServiceInfoCreator(ServiceInfoCreator<? extends ServiceInfo,SD> serviceInfoCreator)