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 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 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
ServiceInfos 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, waitgetApplicationInstanceInfo, isInMatchingCloudprotected List<ServiceInfoCreator<?,SD>> serviceInfoCreators
public AbstractCloudConnector(Class<? extends ServiceInfoCreator<? extends ServiceInfo,?>> serviceInfoCreatorClass)
protected abstract FallbackServiceInfoCreator<?,SD> getFallbackServiceInfoCreator()
public List<ServiceInfo> getServiceInfos()
CloudConnectorServiceInfos for services bound to the appgetServiceInfos in interface CloudConnectorprotected void registerServiceInfoCreator(ServiceInfoCreator<? extends ServiceInfo,SD> serviceInfoCreator)
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.