Class ChildBeanPostProcessorStrategy


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

      Constructors 
      Constructor Description
      ChildBeanPostProcessorStrategy​(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> void process​(java.lang.Class<T> beanClass, java.util.function.Supplier<T> targetProvider, java.util.function.Consumer<T> operation)
      Applies operation to beans of type beanClass starting from bean provided by targetProvider and including all child beans.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ChildBeanPostProcessorStrategy

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

      • process

        public <T> void process​(java.lang.Class<T> beanClass,
                                java.util.function.Supplier<T> targetProvider,
                                java.util.function.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