Interface DiscriminatedConfigurationPropertiesMethodCallProcessor
- All Known Implementing Classes:
DefaultDiscriminatedConfigurationPropertiesMethodCallProcessor
public interface DiscriminatedConfigurationPropertiesMethodCallProcessor
Studies the method call on a
ConfigurationProperties
annotated bean to determine if it
should be evaluated for tenant related discrimination. Valid candidate methods include zero
parameter property accessors whose return type is the same as the field type they serve. All
other detected method calls are handled as simple passthrough.-
Method Summary
-
Method Details
-
processMethod
@Nullable Object processMethod(@NonNull Object configClassInstance, @NonNull Method originalMethod, @NonNull Method proxyMethod, @NonNull Object[] args, @NonNull String key) Handle a method call on aConfigurationProperties
annotated bean- Parameters:
configClassInstance
- TheConfigurationProperties
annotated bean instanceoriginalMethod
- The method in the superClass being proxiedproxyMethod
- The method being calledargs
- The args being passedkey
- TheConfigurationProperties.prefix()
value from the bean instance- Returns:
- The result of the method call - possibly a discriminated property value
-