Examples of FwkActivator


Examples of org.emrys.webosgi.core.FwkActivator

        result.add(bundle);
      return result;
    }

    private boolean isJeeSvcContribution(Bundle bundle) {
      FwkActivator fwcActivator = FwkActivator.getInstance();
      IExtensionPoint extPoint = Platform.getExtensionRegistry()
          .getExtensionPoint(
              fwcActivator.getBundleSymbleName()
                  + ".jeeSvcContribution");
      IConfigurationElement[] ces = extPoint.getConfigurationElements();
      for (IConfigurationElement ce : ces) {
        String bundleId = ((RegistryContributor) (ce.getContributor()))
            .getId();
View Full Code Here

Examples of org.emrys.webosgi.core.FwkActivator

      }
      return null;
    }

    private IWebApplication findWebSvcContribution(Bundle bundle) {
      FwkActivator fwcActivator = FwkActivator.getInstance();
      IExtensionPoint extPoint = Platform.getExtensionRegistry()
          .getExtensionPoint(
              fwcActivator.getBundleSymbleName()
                  + ".JeeWebApplication");
      IConfigurationElement[] ces = extPoint.getConfigurationElements();
      for (IConfigurationElement ce : ces) {
        String bundleId = ((RegistryContributor) (ce.getContributor()))
            .getId();
        if (bundle.getBundleId() != Long.parseLong(bundleId))
          continue;
        if (!ce.getName().equals("application"))
          continue;
        try {
          return (IWebApplication) ce
              .createExecutableExtension("class");
        } catch (Exception e) {
          fwcActivator.log(e);
        }
      }
      return null;
    }
View Full Code Here

Examples of org.emrys.webosgi.core.FwkActivator

    return;
  }

  protected IWebApplication findApplication(Bundle bundle) {
    FwkActivator fwkActivator = FwkActivator.getInstance();
    IWebApplication app = FwkRuntime.getInstance().getAppliction(bundle);
    if (app != null)
      return app;
    IExtensionPoint extPoint = Platform.getExtensionRegistry()
        .getExtensionPoint(
            fwkActivator.getBundleSymbleName()
                + ".JeeWebApplication");
    IConfigurationElement[] ces = extPoint.getConfigurationElements();
    for (IConfigurationElement ce : ces) {
      String bundleId = ((RegistryContributor) (ce.getContributor()))
          .getId();
      if (bundle.getBundleId() != Long.parseLong(bundleId))
        continue;
      if (!ce.getName().equals("application"))
        continue;
      try {
        return (IWebApplication) ce.createExecutableExtension("class");
      } catch (Exception e) {
        fwkActivator.log(e);
      }
    }

    return null;
  }
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.