org.apache.hivemind.service
Interface ObjectProvider
- All Known Implementing Classes:
- ClassObjectProvider, ConfigurationObjectProvider, ObjectInstanceObjectProvider, ServiceObjectProvider, ServicePropertyObjectProvider
public interface ObjectProvider
A service which can provide an object value for the indirect
translator.
- Author:
- Howard Lewis Ship
Method Summary |
java.lang.Object |
provideObject(Module contributingModule,
java.lang.Class propertyType,
java.lang.String locator,
Location location)
Invoked by the translator to provide the value. |
provideObject
java.lang.Object provideObject(Module contributingModule,
java.lang.Class propertyType,
java.lang.String locator,
Location location)
- Invoked by the translator to provide the value.
- Parameters:
contributingModule
- the module which contributed to the locatorpropertyType
- the expected type of propertylocator
- a string that should be meaningful to this provider. It is the suffix of
the original input value provided to the translator, after the selector prefix
(used to choose a provider) was stripped.location
- the location of the input value (from which the locator was extracted). Used
for error reporting, or to set the location of created objects.