public class ServicePropertyObjectProvider extends java.lang.Object implements ObjectProvider
ObjectProvider implementation
that obtains a named property from a service. This provider is
mapped to the prefix "service-property", the service id is seperated
from the property name by a colon. Example:
service-property:MyService:myProperty| Constructor and Description |
|---|
ServicePropertyObjectProvider() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
provideObject(Module contributingModule,
java.lang.Class propertyType,
java.lang.String locator,
Location location)
Invoked by the translator to provide the value.
|
public ServicePropertyObjectProvider()
public java.lang.Object provideObject(Module contributingModule, java.lang.Class propertyType, java.lang.String locator, Location location)
ObjectProviderprovideObject in interface ObjectProvidercontributingModule - 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.