public interface SubscriberConfigProvider
Subscribe
annotation is inherently compile-time & constant, in cases where the configurations are to be taken from a property
file for instance, a subscriber must implement this interface and provide dynamic configurations. Subscribe.name(). getConfigForName(String) with the name as specified by
Subscribe.name()null then uses this configuration for any field.null then uses any configuration provided by the annotation
as is.| Modifier and Type | Interface and Description |
|---|---|
static interface |
SubscriberConfigProvider.SubscriberConfig
Configuration for a subscriber.
|
| Modifier and Type | Method and Description |
|---|---|
SubscriberConfigProvider.SubscriberConfig |
getConfigForName(java.lang.String subscriberName)
Returns the configuration for the passed subscriber name.
|
@Nullable SubscriberConfigProvider.SubscriberConfig getConfigForName(java.lang.String subscriberName)
subscriberName - Name of the subscriber.null if the configuration for that subscriber is not supplied by this
provider.