Class ChildBeanPostProcessorStrategy

java.lang.Object
de.hybris.platform.converters.impl.ChildBeanPostProcessorStrategy

public class ChildBeanPostProcessorStrategy extends Object
A strategy for applying modification to target bean and all its child beans according to bean definition.
  • Constructor Details

    • ChildBeanPostProcessorStrategy

      public ChildBeanPostProcessorStrategy(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
  • Method Details

    • process

      public <T> void process(Class<T> beanClass, Supplier<T> targetProvider, Consumer<T> operation)
      Applies operation to beans of type beanClass starting from bean provided by targetProvider and including all child beans.
      Parameters:
      beanClass - class of beans to process
      targetProvider - starting bean defining bean hierarchy
      operation - operation executed on selected beans