|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Autowiring
Service that wires properties of object with services defined in the registry.
Different strategies are available. The standard strategies are defined
in AutowiringStrategy
.
Method Summary | |
---|---|
java.lang.Object |
autowireProperties(java.lang.Object target)
Autowires all writable properties of target . |
java.lang.Object |
autowireProperties(java.lang.Object target,
java.lang.String[] propertyNames)
Autowires the properties of target defined in propertyNames . |
java.lang.Object |
autowireProperties(java.lang.String strategy,
java.lang.Object target)
Autowires all writable properties of target using a certain strategy. |
java.lang.Object |
autowireProperties(java.lang.String strategy,
java.lang.Object target,
java.lang.String[] propertyNames)
Autowires the properties of target defined in propertyNames
using a certain strategy. |
Method Detail |
---|
java.lang.Object autowireProperties(java.lang.Object target, java.lang.String[] propertyNames)
target
defined in propertyNames
.
All available strategies are tried until one strategy succeeds.
target
- the target object whose properties should be wiredpropertyNames
- the properties to wire
java.lang.Object autowireProperties(java.lang.Object target)
target
.
All available strategies are tried until one strategy succeeds.
target
- the target object whose properties should be wired
java.lang.Object autowireProperties(java.lang.String strategy, java.lang.Object target, java.lang.String[] propertyNames)
target
defined in propertyNames
using a certain strategy.
strategy
- name of the strategy to be used. Standard strategies are defined
in AutowiringStrategy
target
- the target object whose properties should be wiredpropertyNames
- the properties to wire
java.lang.Object autowireProperties(java.lang.String strategy, java.lang.Object target)
target
using a certain strategy.
strategy
- name of the strategy to be used. Standard strategies are defined
in AutowiringStrategy
target
- the target object whose properties should be wired
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |