public class AutowiredFieldSetter extends DefaultFieldSetter
@Autowired
annotation from Spring.Constructor and Description |
---|
AutowiredFieldSetter() |
Modifier and Type | Method and Description |
---|---|
protected Object |
getValue(Field f,
Object o,
ApplicationContext context)
Searches for a value to satisfy the field.
|
setApplicationContext, setFields
protected Object getValue(Field f, Object o, ApplicationContext context) throws UnsettableFieldException
Insert
annotation. To support other annotations, override this method and return the value that should be
set on the given field f. First calls DefaultFieldSetter.getValue(java.lang.reflect.Field, java.lang.Object, be.redlab.tool.context.ApplicationContext)
method if the value is not found.getValue
in class DefaultFieldSetter
f
- the fieldo
- the object to set the value oncontext
- the context to look for dependenciesUnsettableFieldException
Copyright © 2012 redlab.be. All Rights Reserved.