Class DependentPropertyInitializer
- java.lang.Object
-
- ch.sahits.game.openpatrician.utilities.spring.DependentPropertyInitializer
-
public class DependentPropertyInitializer extends java.lang.Object
The DependentPropertyInitializer is called in the post construct phase when creating a bean and resolves all fields annotated withDependentValue
using an instance ofIPropertyInitializer
.- Author:
- Andi Hotz, (c) Sahits GmbH, 2016 Created on May 13, 2016
-
-
Field Summary
Fields Modifier and Type Field Description private IPropertyInitializer
propertyInitializer
-
Constructor Summary
Constructors Constructor Description DependentPropertyInitializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initializeAnnotatedFields(java.lang.Object bean)
private void
replaceValues(java.lang.Object bean, java.lang.Class<?> aClass)
-
-
-
Field Detail
-
propertyInitializer
@Autowired private IPropertyInitializer propertyInitializer
-
-
Method Detail
-
initializeAnnotatedFields
public void initializeAnnotatedFields(java.lang.Object bean) throws java.lang.IllegalAccessException
- Throws:
java.lang.IllegalAccessException
-
replaceValues
private void replaceValues(java.lang.Object bean, java.lang.Class<?> aClass) throws java.lang.IllegalAccessException
- Throws:
java.lang.IllegalAccessException
-
-