Package org.apache.karaf.packages.core

Examples of org.apache.karaf.packages.core.PackageRequirement


                    Map<String, String> attr = req.getDirectives();
                    String filter = attr.get("filter");
                    String resolution = attr.get("resolution");
                    boolean optional = "optional".equals(resolution);
                    boolean resolveable = checkResolveAble(req);
                    PackageRequirement preq = new PackageRequirement(filter, optional, bundle, resolveable);
                    filterMap.put(filter, preq);
                }
            }
        }
        return filterMap;
View Full Code Here


            TabularData table = new TabularDataSupport(tableType);

            SortedMap<String, PackageRequirement> imports = packageService.getImports();

            for (String key : imports.keySet()) {
                PackageRequirement req = imports.get(key);
                Object[] data = new Object[] {
                                         req.getPackageName(),
                                         req.getFilter(),
                                         req.isOptional(),
                                         req.getBundle().getBundleId(),
                                         req.getBundle().getSymbolicName(),
                                         req.isResolveable()};
                CompositeData comp = new CompositeDataSupport(bundleType, names, data);
                table.put(comp);
             }
            return table;
        } catch (RuntimeException e) {
View Full Code Here

        table.column(new Col("ID"));
        table.column(new Col("Bundle Name"));
        table.column(new Col("Resolveable"));
       
        for (String filter : imports.keySet()) {
            PackageRequirement req = imports.get(filter);
            Bundle bundle = req.getBundle();
            String firstCol = onlyPackage ? req.getPackageName() : req.getFilter();
            table.addRow().addContent(firstCol, req.isOptional() ? "optional" : "", bundle.getBundleId(), bundle.getSymbolicName(), req.isResolveable());
        }
        table.print(System.out, !noFormat);
        return null;
    }
View Full Code Here

        table.column(new Col("ID"));
        table.column(new Col("Bundle Name"));
        table.column(new Col("Resolveable"));
       
        for (String filter : imports.keySet()) {
            PackageRequirement req = imports.get(filter);
            Bundle bundle = req.getBundle();
            String firstCol = onlyPackage ? req.getPackageName() : req.getFilter();
            table.addRow().addContent(firstCol, req.isOptional() ? "optional" : "", bundle.getBundleId(), bundle.getSymbolicName(), req.isResolveable());
        }
        table.print(System.out);
        return null;
    }
View Full Code Here

            TabularData table = new TabularDataSupport(tableType);

            SortedMap<String, PackageRequirement> imports = packageService.getImports();

            for (String key : imports.keySet()) {
                PackageRequirement req = imports.get(key);
                Object[] data = new Object[] {
                                         req.getPackageName(),
                                         req.getFilter(),
                                         req.isOptional(),
                                         req.getBundle().getBundleId(),
                                         req.getBundle().getSymbolicName(),
                                         req.isResolveable()};
                CompositeData comp = new CompositeDataSupport(bundleType, names, data);
                table.put(comp);
             }
            return table;
        } catch (RuntimeException e) {
View Full Code Here

        table.column(new Col("ID"));
        table.column(new Col("Bundle Name"));
        table.column(new Col("Resolveable"));
       
        for (String filter : imports.keySet()) {
            PackageRequirement req = imports.get(filter);
            Bundle bundle = req.getBundle();
            String firstCol = onlyPackage ? req.getPackageName() : req.getFilter();
            table.addRow().addContent(firstCol, req.isOptional() ? "optional" : "", bundle.getBundleId(), bundle.getSymbolicName(), req.isResolveable());
        }
        table.print(System.out, !noFormat);
        return null;
    }
View Full Code Here

TOP

Related Classes of org.apache.karaf.packages.core.PackageRequirement

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.