Class DefaultDiscriminatedConfigurationPropertiesMethodCallProcessor
java.lang.Object
com.broadleafcommerce.common.extension.environment.DefaultDiscriminatedConfigurationPropertiesMethodCallProcessor
- All Implemented Interfaces:
DiscriminatedConfigurationPropertiesMethodCallProcessor
public class DefaultDiscriminatedConfigurationPropertiesMethodCallProcessor
extends Object
implements DiscriminatedConfigurationPropertiesMethodCallProcessor
-
Constructor Summary
ConstructorDescriptionDefaultDiscriminatedConfigurationPropertiesMethodCallProcessor
(DiscriminatedPropertyAccessor propertyAccessor) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.broadleafcommerce.common.extension.environment.DefaultDiscriminatedConfigurationPropertiesMethodCallProcessor.FieldInfo
protected Object
getNestedProxy
(Object delegate, Class<?> type, String key) processMethod
(Object configClassInstance, Method originalMethod, Method proxyMethod, Object[] args, String key) Handle a method call on aConfigurationProperties
annotated bean
-
Constructor Details
-
DefaultDiscriminatedConfigurationPropertiesMethodCallProcessor
public DefaultDiscriminatedConfigurationPropertiesMethodCallProcessor(DiscriminatedPropertyAccessor propertyAccessor)
-
-
Method Details
-
processMethod
@Nullable public Object processMethod(@NonNull Object configClassInstance, @NonNull Method originalMethod, @NonNull Method proxyMethod, @NonNull Object[] args, @NonNull String key) Description copied from interface:DiscriminatedConfigurationPropertiesMethodCallProcessor
Handle a method call on aConfigurationProperties
annotated bean- Specified by:
processMethod
in interfaceDiscriminatedConfigurationPropertiesMethodCallProcessor
- 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
-
getNestedProxy
-
getField
-