Package org.adempiere.base
Interface IServiceLocator
- All Known Implementing Classes:
DynamicServiceLocator
public interface IServiceLocator
Interface for dynamic discovery of services.
This is the primary entry point for iDempiere service discovery.
This is the primary entry point for iDempiere service discovery.
- Author:
- viola
-
Method Summary
Modifier and TypeMethodDescription<T> IServicesHolder<T>
Find all matching services by type<T> IServicesHolder<T>
list
(Class<T> type, String componentName, ServiceQuery query) Find all matching services by component name and query expression<T> IServicesHolder<T>
list
(Class<T> type, ServiceQuery query) Find all matching services by type and query expression<T> IServiceHolder<T>
Locate matching service by type (order by service.ranking priority)<T> IServiceHolder<T>
locate
(Class<T> type, String componentName, ServiceQuery query) Locate matching service by component name and query expression<T> IServiceHolder<T>
locate
(Class<T> type, ServiceQuery query) Locate matching service by type and query expression
-
Method Details
-
locate
Locate matching service by type (order by service.ranking priority)- Parameters:
type
- service interface- Returns:
- holder for dynamic service
-
locate
Locate matching service by type and query expression- Parameters:
type
-query
-- Returns:
- holder for service
-
locate
Locate matching service by component name and query expression- Parameters:
type
-componentName
- service component namequery
-- Returns:
- holder for dynamic service
-
list
Find all matching services by type- Parameters:
type
-- Returns:
- holder for list of dynamic service
-
list
Find all matching services by type and query expression- Parameters:
type
-query
-- Returns:
- holder for list of dynamic service
-
list
Find all matching services by component name and query expression- Parameters:
type
-componentName
- osgi service component namequery
-- Returns:
- holder for list of dynamic service
-