public final class TelegramServiceProvider extends Object
Modifier and Type | Method and Description |
---|---|
static TelegramServiceProvider |
get()
Returns the singleton provider.
|
TelegramService |
getAlternativeService()
Get the current alternative service, if any.
|
TelegramService |
getService()
Provides the current service.
|
void |
restoreDefaultService()
Restores the provider to its original state.
|
void |
setAlternativeService(TelegramService service)
Allows setting an alternative service.
|
public static TelegramServiceProvider get()
public TelegramService getService()
TelegramService
public TelegramService getAlternativeService()
public void setAlternativeService(TelegramService service)
service
- the alternative servicepublic void restoreDefaultService()
Apache Camel