Skip to content

Commit

Permalink
fix: CAP API Compatibility (#151)
Browse files Browse the repository at this point in the history
Co-authored-by: Johannes Schneider <[email protected]>
  • Loading branch information
MatKuhr and Johannes Schneider authored Nov 22, 2023
1 parent 331ce0b commit 72bd215
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,23 @@ public DefaultDestinationLoader registerDestination( @Nonnull final Destination
return this;
}

/**
* Register a {@link HttpDestination} to this destination loader. It must have a non-empty name to be identified by.
* If a destination with the same name was registered previously it will be replaced by this one.
*
* @param destination
* A destination this loader should return when queried.
* @return This loader instance.
*
* @throws IllegalArgumentException
* if the destination name is null or empty.
*/
@Nonnull
public DefaultDestinationLoader registerDestination( @Nonnull final HttpDestination destination )
{
return registerDestination((Destination) destination);
}

@Nonnull
@Override
public
Expand Down

0 comments on commit 72bd215

Please sign in to comment.