Interface ServiceLocator
public interface ServiceLocator
Factory for acquiring instances of Platform services. Rarely used directly by clients - prefer
Services.get(Class)
.-
Method Summary
Modifier and Type Method Description <T extends Service>
TgetService(java.lang.Class<? extends T> intf)
Returns an appropriate instance of the given service interface.
-
Method Details
-
getService
Returns an appropriate instance of the given service interface.- Type Parameters:
T
- interface type- Parameters:
intf
- interface class- Returns:
- appropriate instance of the given service interface
-