Package io.github.chrimle.sbspi
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final Class<StaticValue>
The annotation class which to process. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpostProcessAfterInitialization
(Object bean, String beanName) void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) 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
postProcessBeforeInitialization
-
Field Details
-
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 interfaceorg.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 interfaceorg.springframework.beans.factory.config.BeanPostProcessor
- Throws:
org.springframework.beans.BeansException
-