org.apache.hivemind.service
Interface AutowiringStrategy
- All Known Implementing Classes:
- AutowiringByTypeStrategy
public interface AutowiringStrategy
Wires a single property of an object with a service from the hivemind registry.
The implementations of this interface can use different strategies for
finding a matching service.
- Author:
- Achim Huegen
Field Summary |
static java.lang.String |
BY_TYPE
Strategy that searches for services by the type of a property. |
BY_TYPE
static final java.lang.String BY_TYPE
- Strategy that searches for services by the type of a property.
- See Also:
- Constant Field Values
autowireProperty
boolean autowireProperty(RegistryInfrastructure registry,
java.lang.Object target,
java.lang.String propertyName)
- Autowire a single property.
- Parameters:
registry
- registry for lookup of servicestarget
- the target objectpropertyName
- name of the property
- Returns:
- true if the wiring has succeeded
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.