@Beta public class FallbackDestinationFacade extends AbstractDestinationFacade
DestinationFacade
interface, looking for destinations in a given "primary" facade
and, if no destination for a given name could be found, falls back to the "fallback" facade.Constructor and Description |
---|
FallbackDestinationFacade(DestinationFacade primaryFacade,
DestinationFacade fallbackFacade)
Creates a new facade with the given primary and fallback facades.
|
Modifier and Type | Method and Description |
---|---|
Class<? extends Destination> |
getDestinationClass()
Returns the platform-specific implementation class of
Destination . |
Class<? extends GenericDestination> |
getGenericDestinationClass()
Returns the platform-specific implementation class of
GenericDestination . |
Map<String,GenericDestination> |
getGenericDestinationsByName()
Returns all destinations by their names.
|
Class<? extends RfcDestination> |
getRfcDestinationClass()
Returns the platform-specific implementation class of
RfcDestination . |
assertDestinationType, declareDestinations, getDestination, getDestinationsByName, getDestinationsForType, getDestinationsFromEnvironmentVariable, getDestinationsFromEnvironmentVariable, getDestinationType, getGenericDestination, getRfcDestination, getRfcDestinationsByName
public FallbackDestinationFacade(@Nonnull DestinationFacade primaryFacade, @Nonnull DestinationFacade fallbackFacade)
primaryFacade
- The facade to look for destinations in first.fallbackFacade
- The facade to look for destinations in if none was found for a name in the primaryFacade
.@Nonnull public Class<? extends GenericDestination> getGenericDestinationClass()
DestinationFacade
GenericDestination
. For internal use only.@Nonnull public Class<? extends Destination> getDestinationClass()
DestinationFacade
Destination
. For internal use only.@Nonnull public Class<? extends RfcDestination> getRfcDestinationClass()
DestinationFacade
RfcDestination
. For internal use only.@Nonnull public Map<String,GenericDestination> getGenericDestinationsByName() throws DestinationAccessException
DestinationFacade
DestinationAccessException
- If there is an issue while accessing destination information.Copyright © 2019 SAP SE. All rights reserved.