@@ -0,0 +1,1411 @@
+package bqadapter;%0A%0Aimport org.osgi.framework.BundleActivator;%0Aimport org.osgi.framework.BundleContext;%0Aimport org.osgi.framework.ServiceRegistration;%0Aimport org.apache.log4j.LogManager;%0Aimport org.apache.log4j.Logger;%0Aimport org.apache.log4j.PropertyConfigurator;%0A%0Aimport com.sap.hana.dp.adapter.sdk.AdapterFactory;%0A%0Apublic class Activator implements BundleActivator %7B%09%0A%09%0A%09//System.setProperty(%22java.util.logging.config.file%22, fileName);%0A%09Logger logger = LogManager.getLogger(Activator.class);%0A%0A%09private static BundleContext context;%0A%0A%09static BundleContext getContext() %7B%0A%09%09return context;%0A%09%7D%0A%0A%09ServiceRegistration%3C?%3E adapterRegistration;%0A%0A%09/*%0A%09 * (non-Javadoc)%0A%09 * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)%0A%09 */%0A%09%0A%09@Override%0A%09public void start(BundleContext bundleContext) throws Exception %7B%09%09%0A%09%09%0A%09%09PropertyConfigurator.configure(%22log4j.properties%22);%0A        logger.info(%22### BQAdapter start%22);%0A        %0A%09%09Activator.context = bundleContext;%0A%09%0A%09%09BQAdapterFactory srv = new BQAdapterFactory();%0A%09%09adapterRegistration = context.registerService(AdapterFactory.class.getName(),srv ,null);%0A%09%7D%0A%0A%09/*%0A%09 * (non-Javadoc)%0A%09 * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)%0A%09 */%0A%09public void stop(BundleContext bundleContext) throws Exception %7B%0A%09%09logger.info(%22### BQAdapter stop%22);%0A%09%09Activator.context = null;%0A%0A%09%09adapterRegistration.unregister();%0A%09%7D%0A%0A%7D%0A

Create Activator.java