Examples of Activator


Examples of org.apache.felix.example.extenderbased.host.Activator

     * @throws BundleException if something went wrong while installing or starting the bundles.
     */
    private static void installAndStartBundles(String... bundleLocations) throws BundleException
    {
        BundleContext bundleContext = m_framework.getBundleContext();
        Activator hostActivator = new Activator();
        hostActivator.start(bundleContext);
        for (String location : bundleLocations)
        {
            Bundle addition = bundleContext.installBundle(location);
            addition.start();
        }
View Full Code Here

Examples of org.apache.felix.example.servicebased.host.Activator

     * @throws BundleException if something went wrong while installing or starting the bundles.
     */
    private static void installAndStartBundles(String... bundleLocations) throws BundleException
    {
        BundleContext bundleContext = m_framework.getBundleContext();
        Activator hostActivator = new Activator();
        hostActivator.start(bundleContext);
        for (String location : bundleLocations)
        {
            Bundle addition = bundleContext.installBundle(location);
            addition.start();
        }
View Full Code Here

Examples of org.apache.felix.httplite.osgi.Activator

        registry = ( ( PojoServiceRegistryFactory ) loader.iterator().next() ).newPojoServiceRegistry( new HashMap() );

        assertNotNull( registry );

        //Initialize bundle
        activator = new Activator();
        activator.start( registry.getBundleContext() );
    }
View Full Code Here

Examples of org.apache.sling.ide.eclipse.ui.internal.Activator

  /**
   * Construct a new Import Wizard container instance.
   */
  public ImportWizard() {
    super();
        Activator activator = Activator.getDefault();
        serializationManager = activator.getSerializationManager();
  }
View Full Code Here

Examples of org.eclipse.core.internal.runtime.Activator

            if (aPath != null) {
                result.add(aPath);
            }
        }

        final Activator activator = Activator.getDefault();
        if (activator != null) {
            final Bundle[] fragments = activator.getFragments(b);
            if (fragments != null) {
                for (int i = 0; i < fragments.length; i++) {
                    entry = fragments[i].getEntry(entryName);
                    if (entry != null) {
                        final String aPath = getPathFromUrl(entry);
View Full Code Here

Examples of org.eclipse.ecf.internal.core.identity.Activator

    addNamespace0(new URIID.URIIDNamespace());
  }

  private synchronized static void initialize() {
    if (!initialized) {
      Activator a = Activator.getDefault();
      if (a != null)
        a.setupNamespaceExtensionPoint();
      initialized = true;
    }
  }
View Full Code Here

Examples of org.eclipse.ecf.internal.core.sharedobject.Activator

   */
  public Object getAdapter(Class adapter) {
    if (adapter.isInstance(this)) {
      return this;
    }
    Activator activator = Activator.getDefault();
    if (activator == null)
      return null;
    final IAdapterManager adapterManager = activator.getAdapterManager();
    if (adapterManager == null)
      return null;
    return adapterManager.loadAdapter(this, adapter.getName());
  }
View Full Code Here

Examples of org.eclipse.ecf.internal.osgi.services.remoteserviceadmin.Activator

        endpointDescription);
  }

  private BundleContext getProxyServiceFactoryContext(
      EndpointDescription endpointDescription) throws Exception {
    Activator a = Activator.getDefault();
    if (a == null)
      throw new NullPointerException(
          "ECF RemoteServiceAdmin Activator cannot be null."); //$NON-NLS-1$
    if (a.isOldEquinox()) {
      // In this case, we get the Bundle that exposes the first service
      // interface class
      BundleContext rsaContext = Activator.getContext();
      if (rsaContext == null)
        throw new NullPointerException(
            "RSA BundleContext cannot be null"); //$NON-NLS-1$
      List<String> interfaces = endpointDescription.getInterfaces();
      Collection<Class> serviceInterfaceClasses = loadServiceInterfacesViaBundle(
          rsaContext.getBundle(),
          interfaces.toArray(new String[interfaces.size()]));
      if (serviceInterfaceClasses.size() == 0)
        throw new NullPointerException(
            "No interface classes loadable for endpointDescription=" //$NON-NLS-1$
                + endpointDescription);
      // Get the bundle responsible for the first service interface class
      Class serviceInterfaceClass = serviceInterfaceClasses.iterator()
          .next();
      Bundle bundle = FrameworkUtil.getBundle(serviceInterfaceClass);
      if (bundle == null)
        throw new BundleException("Bundle for service interface class=" //$NON-NLS-1$
            + serviceInterfaceClass.getName() + " cannot be found"); //$NON-NLS-1$
      int bundleState = bundle.getState();
      BundleContext bundleContext = bundle.getBundleContext();
      if (bundleContext == null)
        throw new BundleException("Bundle=" + bundle.getSymbolicName() //$NON-NLS-1$
            + " in wrong state (" + bundleState //$NON-NLS-1$
            + ") for using BundleContext proxy service factory"); //$NON-NLS-1$
      return bundleContext;
    }
    return a.getProxyServiceFactoryBundleContext();
  }
View Full Code Here

Examples of org.eclipse.ecf.internal.provider.filetransfer.Activator

      }
    }
  }

  private void logError(String message, IOException e) {
    Activator a = Activator.getDefault();
    if (a != null)
      a.log(new Status(IStatus.ERROR, Activator.PLUGIN_ID, IStatus.ERROR, message, e));
  }
View Full Code Here

Examples of org.eclipse.ecf.internal.remoteservice.Activator

  protected RemoteServiceClientRegistration createRestServiceRegistration(IRemoteCallable[] callables, Dictionary properties) {
    return new RemoteServiceClientRegistration(getRemoteServiceNamespace(), callables, properties, registry);
  }

  protected void logException(String string, Throwable e) {
    Activator a = Activator.getDefault();
    if (a != null)
      a.log(new Status(IStatus.ERROR, Activator.PLUGIN_ID, string, e));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.