|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hivemind.service.impl.ServiceObjectProvider
public class ServiceObjectProvider
An ObjectProvider that provides access to services. Returns
null if the input is null. Deployed with the prefix "service".
| Constructor Summary | |
|---|---|
ServiceObjectProvider()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
provideObject(Module contributingModule,
java.lang.Class propertyType,
java.lang.String locator,
Location location)
Interprets the locator as a service id, and passes it to Module.getService(String, Class). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceObjectProvider()
| Method Detail |
|---|
public java.lang.Object provideObject(Module contributingModule,
java.lang.Class propertyType,
java.lang.String locator,
Location location)
Module.getService(String, Class).
provideObject 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||