Package org.adempiere.base.ds
Class DynamicServiceReference<T>
java.lang.Object
org.adempiere.base.ds.DynamicServiceReference<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
IServiceReferenceHolder<T>
IServiceReferenceHolder for OSGi service, implemented using
ServiceTracker
- Author:
- hengsin
-
Constructor Summary
ConstructorDescriptionDynamicServiceReference
(org.osgi.util.tracker.ServiceTracker<T, T> tracker, org.osgi.framework.ServiceReference<T> serviceReference) -
Method Summary
Modifier and TypeMethodDescriptionGet service object from cache service referenceorg.osgi.framework.ServiceReference<T>
Get the cache service reference
-
Constructor Details
-
Method Details
-
getService
Description copied from interface:IServiceReferenceHolder
Get service object from cache service reference- Specified by:
getService
in interfaceIServiceReferenceHolder<T>
- Returns:
- Service Object or null if the osgi service is no longer available
-
getServiceReference
Description copied from interface:IServiceReferenceHolder
Get the cache service reference- Specified by:
getServiceReference
in interfaceIServiceReferenceHolder<T>
- Returns:
- ServiceReference
-