public interface ServiceLocator
Service
when Request
methods declared in a RequestContext
are mapped
onto instance (non-static) methods.
ServiceLocator subtypes must be default instantiable (i.e. public static types with a no-arg constructor). Instances of ServiceLocators may be retained and reused by the RequestFactory service layer.
Service.locator()
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getInstance(java.lang.Class<?> clazz)
Returns an instance of the service object.
|