Class Inspect

java.lang.Object
org.apache.felix.gogo.command.Inspect

public class Inspect extends Object
  • Field Details

  • Constructor Details

    • Inspect

      public Inspect(org.osgi.framework.BundleContext bc)
  • Method Details

    • inspect

      public String inspect(String direction, String namespace, org.osgi.framework.Bundle[] bundles)
    • inspect

      private static String inspect(org.osgi.framework.BundleContext bc, String direction, String namespace, org.osgi.framework.Bundle[] bundles)
    • printCapabilities

      public static String printCapabilities(org.osgi.framework.BundleContext bc, List<String> namespace, org.osgi.framework.Bundle[] bundles)
    • printMatchingCapabilities

      private static boolean printMatchingCapabilities(org.osgi.framework.wiring.BundleWiring wiring, List<String> namespace, Formatter f)
    • format

      private static String format(Object object)
    • aggregateCapabilities

      private static Map<org.osgi.framework.wiring.BundleCapability,List<org.osgi.framework.wiring.BundleWire>> aggregateCapabilities(List<String> namespace, List<org.osgi.framework.wiring.BundleWire> wires)
    • printServiceCapabilities

      static boolean printServiceCapabilities(org.osgi.framework.Bundle b, Formatter f)
    • printRequirements

      public static String printRequirements(org.osgi.framework.BundleContext bc, List<String> namespace, org.osgi.framework.Bundle[] bundles)
    • printMatchingRequirements

      private static boolean printMatchingRequirements(org.osgi.framework.wiring.BundleWiring wiring, List<String> namespace, Formatter f)
    • aggregateRequirements

      private static Map<org.osgi.framework.wiring.BundleRequirement,List<org.osgi.framework.wiring.BundleWire>> aggregateRequirements(List<String> namespace, List<org.osgi.framework.wiring.BundleWire> wires)
    • printServiceRequirements

      static boolean printServiceRequirements(org.osgi.framework.Bundle b, Formatter f)
    • getVersionFromCapability

      private static String getVersionFromCapability(org.osgi.framework.wiring.BundleCapability c)
    • matchNamespace

      private static boolean matchNamespace(List<String> namespace, String actual)
    • isValidDirection

      private static boolean isValidDirection(String direction)