/* * © Copyright Foconis AG, 2013 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or * implied. See the License for the specific language governing * permissions and limitations under the License. */ package org.openntf.junit4xpages; import java.util.logging.Logger; import org.eclipse.core.runtime.Plugin; import org.osgi.framework.BundleContext; /** * * @author Alexander Wagner, FOCONIS AG * */ public class Activator extends Plugin { @SuppressWarnings("unused") private static final Logger log_ = Logger.getLogger(Activator.class.getName()); private static Activator instance; public Activator() { instance = this; System.out.println(Activator.class.getPackage().getName() + " loaded"); } public static Activator getInstance() { return instance; } /* * (non-Javadoc) * * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext ) */ @Override public void start(final BundleContext bundleContext) throws Exception { System.out.println("junit activator"); // Factory.setClassLoader(Thread.currentThread().getContextClassLoader()); } /* * (non-Javadoc) * * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext) */ @Override public void stop(final BundleContext bundleContext) throws Exception { } }