|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PropertiesInjector
Represents the logic that pulls property values from a Dependency object and inject them into the appropriate properties.
A typical implementation may use java.beans package to do introspection. Yet, it is also possible to use any other naming convention, such as "injectAge" for property "age", or use the "age" field directly.
| Method Summary | |
|---|---|
void |
injectProperties(java.lang.Object obj,
Dependency dep)
Pull property values and inject to the object. |
void |
verifyProperties(java.lang.Class type,
Dependency dep)
Verify that all required properties are resolveable. |
| Method Detail |
|---|
void injectProperties(java.lang.Object obj,
Dependency dep)
obj - the object to inject properties to.dep - the dependency to pull property values form.
void verifyProperties(java.lang.Class type,
Dependency dep)
type - the type that has the properties.dep - the dependency to resolve properties.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||