@Beta public class DefaultScpXfDestinationLoader extends Object implements ScpXfDestinationLoader
VCAP_SERVICES
on SAP Cloud Platform Cloud Foundry
created by the ExtensionFactory.
The least amount of information this logic needs in the VCAP_SERVICES
looks as follows:
{
"VCAP_SERVICES": {
"s4-hana-cloud": [
{
"name": "<some_name>",
"plan": "<some_plan>",
"credentials": {
"User": "<user_name>",
"Authentication": "BasicAuthentication",
"URL": "<url>",
"Password": "<password>"
}
...
}
...
]
...
}
}
The plan
is used as the description of the created destination.Constructor and Description |
---|
DefaultScpXfDestinationLoader() |
Modifier and Type | Method and Description |
---|---|
Map<String,? extends ScpXfDestination> |
loadDestinations()
This method returns a map containing all destination to be considered with
GenericDestination.getName() as their
key. |
@Nonnull public Map<String,? extends ScpXfDestination> loadDestinations()
ScpXfDestinationLoader
GenericDestination.getName()
as their
key.
Note: This method will be called for each getter call to the DestinationAccessor
(e.g.
DestinationAccessor.getDestination(String)
), so the implementation should not contain excessive retrieval
logic, or cache the result.
loadDestinations
in interface ScpXfDestinationLoader
Map
with all relevant destinations.Copyright © 2019 SAP SE. All rights reserved.