public interface RfcDestination extends RfcDestinationProperties
Additionally provides an easy way to decorate itself with a given decorator function.
| Modifier and Type | Method and Description |
|---|---|
default <TargetT extends RfcDestinationProperties> |
decorate(Function<RfcDestinationProperties,TargetT> decorator)
Provides an convenient way to decorate this destination with a custom class.
|
get, get, get, get, getPropertyNames@Nonnull default <TargetT extends RfcDestinationProperties> TargetT decorate(@Nonnull Function<RfcDestinationProperties,TargetT> decorator)
Example usage:
{
CustomDestination customDestination = destination.decorate(CustomDestination::new);
}
TargetT - The type of the decorated destination.decorator - The decorator function to apply. Should not return null.IllegalArgumentException - if the provided decorator returns null.Copyright © 2021 SAP SE. All rights reserved.