Package org.eclipse.equinox.region

Examples of org.eclipse.equinox.region.RegionFilter


    Region to = subsystem.getRegion();
    RegionFilterBuilder builder = from.getRegionDigraph().createRegionFilterBuilder();
    setExportIsolationPolicy(builder, subsystem.getDeploymentManifest().getExportPackageHeader(), subsystem);
    setExportIsolationPolicy(builder, subsystem.getDeploymentManifest().getProvideCapabilityHeader(), subsystem);
    setExportIsolationPolicy(builder, subsystem.getDeploymentManifest().getSubsystemExportServiceHeader(), subsystem);
    RegionFilter regionFilter = builder.build();
    if (regionFilter.getSharingPolicy().isEmpty())
      return;
    if (logger.isDebugEnabled())
      logger.debug("Establishing region connection: from=" + from
          + ", to=" + to + ", filter=" + regionFilter);
    from.connectRegion(to, regionFilter);
View Full Code Here


      addSubsystemServiceImportToSharingPolicy(builder);
    else {
      to = root;
      builder = to.getRegionDigraph().createRegionFilterBuilder();
      addSubsystemServiceImportToSharingPolicy(builder);
      RegionFilter regionFilter = builder.build();
      getRegion().connectRegion(to, regionFilter);
    }
  }
View Full Code Here

      header = getSubsystemManifest().getSubsystemImportServiceHeader();
      setImportIsolationPolicy(builder, (SubsystemImportServiceHeader)header);
      header = getSubsystemManifest().getRequireBundleHeader();
      setImportIsolationPolicy(builder, (RequireBundleHeader)header);
    }
    RegionFilter regionFilter = builder.build();
    from.connectRegion(to, regionFilter);
  }
View Full Code Here

        }
        if (verbose || filters || namespaces) {
            for (RegionDigraph.FilteredRegion f : region.getEdges()) {
                System.out.println("  filter to " + f.getRegion().getName());
                if (verbose || namespaces) {
                    RegionFilter rf = f.getFilter();
                    for (Map.Entry<String, Collection<String>> policy : rf.getSharingPolicy().entrySet()) {
                        String namespace = policy.getKey();
                        System.out.println("  namespace: " + namespace);
                        for (String e : policy.getValue()) {
                            System.out.println("    " + e);
                        }
View Full Code Here

                    }
                }

            }
        }
        RegionFilter f = builder.build();
        regionDigraph.connect(rFrom, f, rTo);
    }
View Full Code Here

        }
        if (verbose || filters || namespaces) {
            for (RegionDigraph.FilteredRegion f : region.getEdges()) {
                System.out.println("  filter to " + f.getRegion().getName());
                if (verbose || namespaces) {
                    RegionFilter rf = f.getFilter();
                    for (Map.Entry<String, Collection<String>> policy : rf.getSharingPolicy().entrySet()) {
                        String namespace = policy.getKey();
                        System.out.println("    namespace: " + namespace);
                        for (String e : policy.getValue()) {
                            System.out.println("      " + e);
                        }
View Full Code Here

TOP

Related Classes of org.eclipse.equinox.region.RegionFilter

Copyright © 2018 www.massapicom. 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.