@Override
	public IServiceRegistration registerService(String clazz, Object service,
			Dictionary<String, String> properties) {
		final String sourceMethod = "registerService"; //$NON-NLS-1$
		boolean isTraceLogging = log.isLoggable(Level.FINER);
		if (isTraceLogging) {
			log.entering(PlatformServicesImpl.class.getName(), sourceMethod, new Object[]{clazz, service, properties});
		}
		ServiceRegistrationOSGi serviceRegistrationOSGi = null;
		ServiceRegistration<?> serviceRegistration = null;
		BundleContext bundleContext = Activator.getBundleContext();
		if (bundleContext != null) {
			serviceRegistration = bundleContext.registerService(clazz, service,
					properties);
			serviceRegistrationOSGi = new ServiceRegistrationOSGi(serviceRegistration);
		}
		if (isTraceLogging) {
			log.exiting(PlatformServicesImpl.class.getName(), sourceMethod, serviceRegistrationOSGi);
		}
		return serviceRegistrationOSGi;
	}
@ Override public IServiceRegistration registerService ( String clazz , Object service , Dictionary < String , String > properties ) { final String sourceMethod = "registerService" ; boolean isTraceLogging = log . isLoggable ( Level . FINER ) ; if ( isTraceLogging ) { log . entering ( PlatformServicesImpl . class . getName ( ) , sourceMethod , new Object [ ] { clazz , service , properties } ) ; } ServiceRegistrationOSGi serviceRegistrationOSGi = null ; ServiceRegistration < ? > serviceRegistration = null ; BundleContext bundleContext = Activator . getBundleContext ( ) ; if ( bundleContext != null ) { serviceRegistration = bundleContext . registerService ( clazz , service , properties ) ; serviceRegistrationOSGi = new ServiceRegistrationOSGi ( serviceRegistration ) ; } if ( isTraceLogging ) { log . exiting ( PlatformServicesImpl . class . getName ( ) , sourceMethod , serviceRegistrationOSGi ) ; } return serviceRegistrationOSGi ; }
/*
(non-Javadoc)

@see org.osgi.framework.BundleContext#registerService(String clazz,
Object service, Dictionary properties)