| Reduce service visibility [message #50159] | 
Mon, 19 September 2005 03:45  | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: schulz78.gmx.net 
 
Hi, 
 
I had a look at the new (interim) OSGi R4 specification. I know that  
Service Permission is used as a filter for the visibility of Service per  
bundle. However service permissions can only be granted per service  
interface. I'm eager to know if this concept can be expanded to the case  
where a special service implementation should be (in-)visible for a  
bundle. More precisely: 
 
Bundle A publishes a service interface I. 
Bundle B implements I and registers it as a service S1. 
Bundle C implements I as well and registers it as another service S2. 
Bundle D has an appropriate permission and sees Service S1 from Bundle B  
but not service S2 from Bundle C. 
Bundle E has a permission for S2 and therefore sees Service S2 but not S1. 
 
I know that filtering based on some service property is always possible.  
But this is not transparent and access to a prohibited service  
implementations is possible if a bundle tries to. Any hints? 
 
Regards, 
Sven
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.04286 seconds