Package org.adempiere.base.ds
Class DynamicServiceLocator
java.lang.Object
org.adempiere.base.ds.DynamicServiceLocator
- All Implemented Interfaces:
IServiceLocator
Service locator implementation for OSGi service.
- Author:
- hengsin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> IServicesHolder<T>
Find all matching services by type<T> IServicesHolder<T>
list
(Class<T> type, String serviceId, 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 serviceId, 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
-
Constructor Details
-
DynamicServiceLocator
public DynamicServiceLocator()default constructor
-
-
Method Details
-
locate
Description copied from interface:IServiceLocator
Locate matching service by type (order by service.ranking priority)- Specified by:
locate
in interfaceIServiceLocator
- Parameters:
type
- service interface- Returns:
- holder for dynamic service
- See Also:
-
locate
Description copied from interface:IServiceLocator
Locate matching service by type and query expression- Specified by:
locate
in interfaceIServiceLocator
- Returns:
- holder for service
- See Also:
-
locate
Description copied from interface:IServiceLocator
Locate matching service by component name and query expression- Specified by:
locate
in interfaceIServiceLocator
serviceId
- service component name- Returns:
- holder for dynamic service
- See Also:
-
list
Description copied from interface:IServiceLocator
Find all matching services by type- Specified by:
list
in interfaceIServiceLocator
- Returns:
- holder for list of dynamic service
- See Also:
-
list
Description copied from interface:IServiceLocator
Find all matching services by type and query expression- Specified by:
list
in interfaceIServiceLocator
- Returns:
- holder for list of dynamic service
- See Also:
-
list
Description copied from interface:IServiceLocator
Find all matching services by component name and query expression- Specified by:
list
in interfaceIServiceLocator
serviceId
- osgi service component name- Returns:
- holder for list of dynamic service
- See Also:
-