diff options
author | BJ Hargrave | 2010-09-08 17:56:33 +0000 |
---|---|---|
committer | BJ Hargrave | 2010-09-08 17:56:33 +0000 |
commit | a3cec579d3e0dcc8b14fafce44e9a4f0e517f5b6 (patch) | |
tree | 79392a762c31d51f8dae0c3d876fcd8ba702a5e3 /bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/SystemBundleActivator.java | |
parent | 7c63118bc299208b1222df56454700a91c2e7a75 (diff) | |
download | rt.equinox.framework-a3cec579d3e0dcc8b14fafce44e9a4f0e517f5b6.tar.gz rt.equinox.framework-a3cec579d3e0dcc8b14fafce44e9a4f0e517f5b6.tar.xz rt.equinox.framework-a3cec579d3e0dcc8b14fafce44e9a4f0e517f5b6.zip |
bug 324774: Update the framework source code for generics
Diffstat (limited to 'bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/SystemBundleActivator.java')
-rw-r--r-- | bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/SystemBundleActivator.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/SystemBundleActivator.java b/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/SystemBundleActivator.java index 468ad2d88..b3b71a674 100644 --- a/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/SystemBundleActivator.java +++ b/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/SystemBundleActivator.java @@ -27,11 +27,11 @@ public class SystemBundleActivator implements BundleActivator { private BundleContext context; private InternalSystemBundle bundle; private Framework framework; - private ServiceRegistration packageAdmin; - private ServiceRegistration securityAdmin; - private ServiceRegistration startLevel; - private ServiceRegistration debugOptions; - private ServiceRegistration contextFinder; + private ServiceRegistration<?> packageAdmin; + private ServiceRegistration<?> securityAdmin; + private ServiceRegistration<?> startLevel; + private ServiceRegistration<?> debugOptions; + private ServiceRegistration<?> contextFinder; public void start(BundleContext bc) throws Exception { this.context = bc; @@ -51,7 +51,7 @@ public class SystemBundleActivator implements BundleActivator { } ClassLoader tccl = framework.getContextFinder(); if (tccl != null) { - Hashtable props = new Hashtable(7); + Dictionary<String, Object> props = new Hashtable<String, Object>(7); props.put("equinox.classloader.type", "contextClassLoader"); //$NON-NLS-1$ //$NON-NLS-2$ contextFinder = register(new String[] {ClassLoader.class.getName()}, tccl, props); } @@ -97,10 +97,10 @@ public class SystemBundleActivator implements BundleActivator { * Register a service object. * */ - private ServiceRegistration register(String[] names, Object service, Hashtable properties) { + private ServiceRegistration<?> register(String[] names, Object service, Dictionary<String, Object> properties) { if (properties == null) - properties = new Hashtable(7); - Dictionary headers = bundle.getHeaders(); + properties = new Hashtable<String, Object>(7); + Dictionary<String, String> headers = bundle.getHeaders(); properties.put(Constants.SERVICE_VENDOR, headers.get(Constants.BUNDLE_VENDOR)); properties.put(Constants.SERVICE_RANKING, new Integer(Integer.MAX_VALUE)); properties.put(Constants.SERVICE_PID, bundle.getBundleId() + "." + service.getClass().getName()); //$NON-NLS-1$ |