Package org.adempiere.base.ds
Class DynamicServiceLocator
- java.lang.Object
-
- org.adempiere.base.ds.DynamicServiceLocator
-
- All Implemented Interfaces:
IServiceLocator
public class DynamicServiceLocator extends Object implements IServiceLocator
- Author:
- hengsin
-
-
Constructor Summary
Constructors Constructor Description DynamicServiceLocator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> IServicesHolder<T>
list(Class<T> type)
<T> IServicesHolder<T>
list(Class<T> type, String serviceId, 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 serviceId, ServiceQuery query)
<T> IServiceHolder<T>
locate(Class<T> type, ServiceQuery query)
-
-
-
Method Detail
-
locate
public <T> IServiceHolder<T> locate(Class<T> type)
- Specified by:
locate
in interfaceIServiceLocator
- Parameters:
type
- service interface- Returns:
- holder for dynamic service
- See Also:
IServiceLocator.locate(java.lang.Class)
-
locate
public <T> IServiceHolder<T> locate(Class<T> type, ServiceQuery query)
- Specified by:
locate
in interfaceIServiceLocator
- Returns:
- See Also:
IServiceLocator.locate(java.lang.Class, org.adempiere.base.ServiceQuery)
-
locate
public <T> IServiceHolder<T> locate(Class<T> type, String serviceId, ServiceQuery query)
- Specified by:
locate
in interfaceIServiceLocator
serviceId
- service component name- Returns:
- holder for dynamic service
- See Also:
IServiceLocator.locate(java.lang.Class, java.lang.String, org.adempiere.base.ServiceQuery)
-
list
public <T> IServicesHolder<T> list(Class<T> type)
- Specified by:
list
in interfaceIServiceLocator
- Returns:
- holder for list of dynamic service
- See Also:
IServiceLocator.list(java.lang.Class)
-
list
public <T> IServicesHolder<T> list(Class<T> type, ServiceQuery query)
- Specified by:
list
in interfaceIServiceLocator
- Returns:
- holder for list of dynamic service
- See Also:
IServiceLocator.list(java.lang.Class, org.adempiere.base.ServiceQuery)
-
list
public <T> IServicesHolder<T> list(Class<T> type, String serviceId, ServiceQuery query)
- Specified by:
list
in interfaceIServiceLocator
serviceId
- osgi service component name- Returns:
- holder for list of dynamic service
- See Also:
IServiceLocator.list(java.lang.Class, java.lang.String, org.adempiere.base.ServiceQuery)
-
-