Package org.adempiere.base
Interface IServiceLocator
-
- All Known Implementing Classes:
DynamicServiceLocator
public interface IServiceLocator
A service locator looks up services. This is the central authority for adempiere service definition, because each service defined has to be looked up via this interface. A service in adempiere is an implementation for the registered interface, expose through osgi service registry- Author:
- viola
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> IServicesHolder<T>
list(Class<T> type)
<T> IServicesHolder<T>
list(Class<T> type, String componentName, ServiceQuery query)
<T> IServicesHolder<T>
list(Class<T> type, ServiceQuery query)
<T> IServiceHolder<T>
locate(Class<T> type)
<T> IServiceHolder<T>
locate(Class<T> type, String componentName, ServiceQuery query)
<T> IServiceHolder<T>
locate(Class<T> type, ServiceQuery query)
-
-
-
Method Detail
-
locate
<T> IServiceHolder<T> locate(Class<T> type)
- Parameters:
type
- service interface- Returns:
- holder for dynamic service
-
locate
<T> IServiceHolder<T> locate(Class<T> type, ServiceQuery query)
- Parameters:
type
-query
-- Returns:
-
locate
<T> IServiceHolder<T> locate(Class<T> type, String componentName, ServiceQuery query)
- Parameters:
type
-componentName
- service component namequery
-- Returns:
- holder for dynamic service
-
list
<T> IServicesHolder<T> list(Class<T> type)
- Parameters:
type
-- Returns:
- holder for list of dynamic service
-
list
<T> IServicesHolder<T> list(Class<T> type, ServiceQuery query)
- Parameters:
type
-query
-- Returns:
- holder for list of dynamic service
-
list
<T> IServicesHolder<T> list(Class<T> type, String componentName, ServiceQuery query)
- Parameters:
type
-componentName
- osgi service component namequery
-- Returns:
- holder for list of dynamic service
-
-