Class RegionConnectorNameExtension

java.lang.Object
energy.eddie.spring.regionconnector.extensions.RegionConnectorNameExtension
All Implemented Interfaces:
org.springframework.beans.factory.config.BeanPostProcessor

public class RegionConnectorNameExtension extends Object implements org.springframework.beans.factory.config.BeanPostProcessor
  • Field Details

  • Constructor Details

    • RegionConnectorNameExtension

      public RegionConnectorNameExtension(org.springframework.beans.factory.support.DefaultListableBeanFactory beanFactory)
      This BeanPostProcessor extracts the value of RegionConnector.name(), creates a String bean for the value, and registers this bean in the context of the region connector.

      The bean will be registered with the name "regionConnectorName".

      Parameters:
      beanFactory - BeanFactory used by this context.
  • Method Details

    • postProcessBeforeInitialization

      public Object postProcessBeforeInitialization(@NonNull Object bean, @NonNull String unusedBeanName)
      Specified by:
      postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor