Package org.incendo.cloud.caption
Class DelegatingCaptionProvider<C>
java.lang.Object
org.incendo.cloud.caption.DelegatingCaptionProvider<C>
- Type Parameters:
C- command sender type
- All Implemented Interfaces:
CaptionProvider<C>
- Direct Known Subclasses:
StandardCaptionsProvider
Caption provider that delegates to another provider.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DelegatingCaptionProvider
public DelegatingCaptionProvider()
-
-
Method Details
-
delegate
Returns the provider to delegate to.- Returns:
- delegate provider
-
provide
Description copied from interface:CaptionProviderReturns the value of the givencaptionfor the givenrecipient, if it recognized by this provider.- Specified by:
providein interfaceCaptionProvider<C>- Parameters:
caption- the caption keyrecipient- the recipient- Returns:
- the caption, or
null
-