Class StaticValueInjector

java.lang.Object
io.github.chrimle.sbspi.StaticValueInjector
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.context.ApplicationContextAware

@Component public class StaticValueInjector extends Object implements org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.context.ApplicationContextAware
Processes all classes within basePackage and processes static fields annotated with StaticValue.
Since:
0.1.0
Author:
Chrimle
  • Field Details

    • STATIC_VALUE_CLASS

      public static final Class<StaticValue> STATIC_VALUE_CLASS
      The annotation class which to process.
      Since:
      0.1.0
  • Constructor Details

    • StaticValueInjector

      public StaticValueInjector()
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • postProcessAfterInitialization

      public Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
      Specified by:
      postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
      Throws:
      org.springframework.beans.BeansException