public class SecureEventAdminFactory extends Object implements org.osgi.framework.ServiceFactory<org.osgi.service.event.EventAdmin>
EventAdmin service by
wrapping it with a new instance of an EventAdminSecurityDecorator on
any call to its getService() method. The decorator will determine the
appropriate permissions by using the given permission factory and the bundle
parameter passed to the getService() method.| Constructor and Description |
|---|
SecureEventAdminFactory(org.osgi.service.event.EventAdmin admin)
The constructor of the factory.
|
| Modifier and Type | Method and Description |
|---|---|
org.osgi.service.event.EventAdmin |
getService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration<org.osgi.service.event.EventAdmin> registration)
Returns a new
EventAdminSecurityDecorator initialized with the
given EventAdmin. |
void |
ungetService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration<org.osgi.service.event.EventAdmin> registration,
org.osgi.service.event.EventAdmin service)
This method doesn't do anything at the moment.
|
public SecureEventAdminFactory(org.osgi.service.event.EventAdmin admin)
EventAdminSecurityDecorator
on any call to getService().admin - The EventAdmin service to secure.public org.osgi.service.event.EventAdmin getService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration<org.osgi.service.event.EventAdmin> registration)
EventAdminSecurityDecorator initialized with the
given EventAdmin. That in turn will check any call to post or
send for the appropriate permissions based on the bundle parameter.getService in interface org.osgi.framework.ServiceFactory<org.osgi.service.event.EventAdmin>bundle - The bundle used to determine the permissions of the callerregistration - The ServiceRegistration that is not usedEventAdminSecuriryDecoratorServiceFactory.getService(org.osgi.framework.Bundle,
org.osgi.framework.ServiceRegistration)public void ungetService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration<org.osgi.service.event.EventAdmin> registration,
org.osgi.service.event.EventAdmin service)
ungetService in interface org.osgi.framework.ServiceFactory<org.osgi.service.event.EventAdmin>bundle - The bundle object that is not usedregistration - The ServiceRegistration that is not usedservice - The service object that is not usedServiceFactory.ungetService(org.osgi.framework.Bundle,
org.osgi.framework.ServiceRegistration, java.lang.Object)Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.