public class OnmsOSGiBridgeActivator extends Object implements RegistrationHook, org.osgi.framework.ServiceListener, org.osgi.framework.BundleActivator
ServiceRegistry
It does this by listening to registrations from each service and publishing new services in the corresponding registry.
OSGI services are only published to the core.soa.ServiceRegistry if they are marked with the 'registration.export' attribute.
A 'registration.source' attribute indicating the source of the initial registration (either 'osgi' or 'onms').
This is added to each synchronized service in order to avoid registration looping.Constructor and Description |
---|
OnmsOSGiBridgeActivator() |
Modifier and Type | Method and Description |
---|---|
void |
registrationAdded(Registration onmsRegistration) |
void |
registrationRemoved(Registration onmsRegistration) |
void |
serviceChanged(org.osgi.framework.ServiceEvent serviceEvent) |
void |
start(org.osgi.framework.BundleContext bundleContext) |
void |
stop(org.osgi.framework.BundleContext bundleContext) |
public void start(org.osgi.framework.BundleContext bundleContext) throws org.osgi.framework.InvalidSyntaxException
start
in interface org.osgi.framework.BundleActivator
org.osgi.framework.InvalidSyntaxException
public void stop(org.osgi.framework.BundleContext bundleContext)
stop
in interface org.osgi.framework.BundleActivator
public void registrationAdded(Registration onmsRegistration)
registrationAdded
in interface RegistrationHook
public void registrationRemoved(Registration onmsRegistration)
registrationRemoved
in interface RegistrationHook
public void serviceChanged(org.osgi.framework.ServiceEvent serviceEvent)
serviceChanged
in interface org.osgi.framework.ServiceListener
Copyright © 2020. All rights reserved.