When I tried to reference the service( DataStoreService<DatastoreContext> ) using the code
-------------------------------------------------CODE---------------------------------------------------
@Reference(name = "StorageService", policy = ReferencePolicy.DYNAMIC,
cardinality = ReferenceCardinality.MANDATORY_UNARY)
private volatile DataStoreService<DataStoreContext> service;
-----------------------------------------------------------------------------------------------------------
I wrote the bindStorageService and unbindStorageService function, still don't get the DataStoreService.
But when i reference the ControllerService in the same way, it worked!
I'm confused about how to get the DataStoreService, OR , should i try to manually constructor the class DataStoreManager?