public class SecureEventAdminFactory extends Object implements org.osgi.framework.ServiceFactory
Constructor and Description |
---|
SecureEventAdminFactory(org.osgi.service.event.EventAdmin admin)
The constructor of the factory.
|
Modifier and Type | Method and Description |
---|---|
Object |
getService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration registration)
Returns a new EventAdminSecurityDecorator initialized with the
given EventAdmin.
|
void |
ungetService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration registration,
Object service)
This method doesn't do anything at the moment.
|
public SecureEventAdminFactory(org.osgi.service.event.EventAdmin admin)
admin
- The EventAdmin service to secure.public Object getService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration registration)
getService
in interface org.osgi.framework.ServiceFactory
bundle
- The bundle used to determine the permissions of the callerregistration
- The ServiceRegistration that is not usedServiceFactory.getService(org.osgi.framework.Bundle,
org.osgi.framework.ServiceRegistration)
public void ungetService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration registration, Object service)
ungetService
in interface org.osgi.framework.ServiceFactory
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-2013 The Apache Software Foundation. All Rights Reserved.