Mercurial > hg > release > thermostat-0.11
changeset 1126:de5f9dc2154c
Fix compilation problem of JMX plugin.
Reviewed-by: omajid
Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2013-May/006700.html
author | Severin Gehwolf <sgehwolf@redhat.com> |
---|---|
date | Tue, 21 May 2013 20:10:30 +0200 |
parents | 625f166f74d1 |
children | 66206bb82f43 |
files | vm-jmx/agent/src/main/java/com/redhat/thermostat/vm/jmx/agent/internal/Activator.java vm-jmx/client-core/src/main/java/com/redhat/thermostat/vm/jmx/client/core/internal/Activator.java vm-jmx/client-swing/src/main/java/com/redhat/thermostat/vm/jmx/client/swing/internal/Activator.java vm-jmx/common/src/main/java/com/redhat/thermostat/vm/jmx/common/internal/Activator.java |
diffstat | 4 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/vm-jmx/agent/src/main/java/com/redhat/thermostat/vm/jmx/agent/internal/Activator.java Wed May 29 16:55:28 2013 -0600 +++ b/vm-jmx/agent/src/main/java/com/redhat/thermostat/vm/jmx/agent/internal/Activator.java Tue May 21 20:10:30 2013 +0200 @@ -70,7 +70,7 @@ JmxRequestListener receiver = new JmxRequestListener(); jmxBackend = new JmxBackend(version, registry, dao, pool, receiver); receiver.setBackend(jmxBackend); - registration = context.registerService(Backend.class, jmxBackend, null); + registration = context.registerService(Backend.class.getName(), jmxBackend, null); } @Override
--- a/vm-jmx/client-core/src/main/java/com/redhat/thermostat/vm/jmx/client/core/internal/Activator.java Wed May 29 16:55:28 2013 -0600 +++ b/vm-jmx/client-core/src/main/java/com/redhat/thermostat/vm/jmx/client/core/internal/Activator.java Tue May 21 20:10:30 2013 +0200 @@ -86,7 +86,7 @@ Dictionary props = new Hashtable(); props.put(Constants.GENERIC_SERVICE_CLASSNAME, VmRef.class.getName()); - registration = context.registerService(InformationService.class, notificationsView, props); + registration = context.registerService(InformationService.class.getName(), notificationsView, props); } @Override
--- a/vm-jmx/client-swing/src/main/java/com/redhat/thermostat/vm/jmx/client/swing/internal/Activator.java Wed May 29 16:55:28 2013 -0600 +++ b/vm-jmx/client-swing/src/main/java/com/redhat/thermostat/vm/jmx/client/swing/internal/Activator.java Tue May 21 20:10:30 2013 +0200 @@ -48,7 +48,7 @@ @Override public void start(BundleContext context) throws Exception { - viewProviderRegistration = context.registerService(JmxNotificationsViewProvider.class, new JmxNotificationsSwingViewProvider(), null); + viewProviderRegistration = context.registerService(JmxNotificationsViewProvider.class.getName(), new JmxNotificationsSwingViewProvider(), null); } @Override
--- a/vm-jmx/common/src/main/java/com/redhat/thermostat/vm/jmx/common/internal/Activator.java Wed May 29 16:55:28 2013 -0600 +++ b/vm-jmx/common/src/main/java/com/redhat/thermostat/vm/jmx/common/internal/Activator.java Tue May 21 20:10:30 2013 +0200 @@ -52,12 +52,12 @@ @Override public void start(final BundleContext context) throws Exception { - storageTracker = new ServiceTracker(context, Storage.class, null) { + storageTracker = new ServiceTracker(context, Storage.class.getName(), null) { @Override public Object addingService(ServiceReference reference) { Storage storage = (Storage) super.addingService(reference); JmxNotificationDAOImpl dao = new JmxNotificationDAOImpl(storage); - daoRegistration = context.registerService(JmxNotificationDAO.class, dao, null); + daoRegistration = context.registerService(JmxNotificationDAO.class.getName(), dao, null); return storage; }