public class DMXApplicationTrackerCustomizer extends Object implements org.osgi.util.tracker.ServiceTrackerCustomizer<Object,Object>
Implementation of OSGI ServiceTrackerCustomizer
for tracking instances of DMXApplication
service. It is important to note that this class is used from within main application, and thus can not
interact with OSGI class loaders in a usual way, so it requires some workaround.
This class uses reflection to find instances tracked service, and set environment data for application. It is
important to keep this class in sync with changes of DMXDesktopApplication
, so reflection works correctly.
Constructor and Description |
---|
DMXApplicationTrackerCustomizer(org.osgi.framework.BundleContext ctx,
String[] arguments,
Map<String,String> config)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
Object |
addingService(org.osgi.framework.ServiceReference<Object> reference)
Invoked when service is added.
|
void |
modifiedService(org.osgi.framework.ServiceReference<Object> sr,
Object t) |
void |
removedService(org.osgi.framework.ServiceReference<Object> sr,
Object t) |
public Object addingService(org.osgi.framework.ServiceReference<Object> reference)
public void modifiedService(org.osgi.framework.ServiceReference<Object> sr, Object t)
Copyright © 2012-2014 Vektor Software. All Rights Reserved.