Hi, We have Admin Services in carbon products which are needed to access as OSGI Services in the carbon context. Most of the time in Admin Services, it check weather user is authorized in the method, So we cannot register same Admin Service as a OSGI Service and access it. Since there are cases user is not authorized when we access as a OSGI Service. What is the best way to reuse the code and create OSGI Service and Admin Service.
After discussing with some folks, i thought following mechanism to implement it. 1. Create an interface for the Service 2. Create an Implementation as OSGI Service 3. Create Admin Service which reuse the OSGI Service and apply additional security. (Here there will be no business logic and additional security will only applied.) Please give feedback on this. Thanks Godwin -- *Godwin Amila Shrimal* Senior Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94772264165* linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>* twitter: https://twitter.com/godwinamila
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
