Class ArmeriaBeanPostProcessor

java.lang.Object
com.linecorp.armeria.spring.ArmeriaBeanPostProcessor
All Implemented Interfaces:
org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor

public final class ArmeriaBeanPostProcessor extends Object implements org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor
BeanPostProcessor implementation that autowires annotated fields, setter methods, and arbitrary config methods. Such members to be injected are detected through annotations: by default, LocalArmeriaPort and LocalArmeriaPorts annotations.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ArmeriaBeanPostProcessor(org.springframework.beans.factory.BeanFactory beanFactory)
    Creates a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.springframework.beans.factory.annotation.InjectionMetadata
    findLocalArmeriaPortMetadata(String beanName, Class<?> clazz, @Nullable org.springframework.beans.PropertyValues pvs)
     
    org.springframework.beans.PropertyValues
    postProcessProperties(org.springframework.beans.PropertyValues pvs, Object bean, String beanName)
    Post-processes the given property values before the factory apply them to the given bean.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor

    postProcessAfterInitialization, postProcessBeforeInitialization

    Methods inherited from interface org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor

    postProcessAfterInstantiation, postProcessBeforeInstantiation
  • Constructor Details

    • ArmeriaBeanPostProcessor

      public ArmeriaBeanPostProcessor(org.springframework.beans.factory.BeanFactory beanFactory)
      Creates a new instance.
  • Method Details

    • postProcessProperties

      public org.springframework.beans.PropertyValues postProcessProperties(org.springframework.beans.PropertyValues pvs, Object bean, String beanName)
      Post-processes the given property values before the factory apply them to the given bean.
      Specified by:
      postProcessProperties in interface org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor
    • findLocalArmeriaPortMetadata

      protected org.springframework.beans.factory.annotation.InjectionMetadata findLocalArmeriaPortMetadata(String beanName, Class<?> clazz, @Nullable @Nullable org.springframework.beans.PropertyValues pvs)