public abstract class AbstractCloudConnector<SD> extends 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 List<ServiceInfoCreator<?,SD>> |
serviceInfoCreators |
Constructor and Description |
---|
AbstractCloudConnector(Class<? extends ServiceInfoCreator<? extends ServiceInfo,?>> serviceInfoCreatorClass) |
Modifier and Type | Method and Description |
---|---|
protected abstract FallbackServiceInfoCreator<?,SD> |
getFallbackServiceInfoCreator() |
List<ServiceInfo> |
getServiceInfos()
Get
ServiceInfo s for services bound to the app |
protected abstract 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 List<ServiceInfoCreator<?,SD>> serviceInfoCreators
public AbstractCloudConnector(Class<? extends ServiceInfoCreator<? extends ServiceInfo,?>> serviceInfoCreatorClass)
protected abstract FallbackServiceInfoCreator<?,SD> getFallbackServiceInfoCreator()
public List<ServiceInfo> getServiceInfos()
CloudConnector
ServiceInfo
s for services bound to the appgetServiceInfos
in interface CloudConnector
protected void registerServiceInfoCreator(ServiceInfoCreator<? extends ServiceInfo,SD> serviceInfoCreator)