Package org.apache.felix.gogo.command
Class Inspect
java.lang.Object
org.apache.felix.gogo.command.Inspect
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Map
<org.osgi.framework.wiring.BundleCapability, List<org.osgi.framework.wiring.BundleWire>> aggregateCapabilities
(List<String> namespace, List<org.osgi.framework.wiring.BundleWire> wires) 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) private static String
private static String
getVersionFromCapability
(org.osgi.framework.wiring.BundleCapability c) private static String
inspect
(org.osgi.framework.BundleContext bc, String direction, String namespace, org.osgi.framework.Bundle[] bundles) private static boolean
isValidDirection
(String direction) private static boolean
matchNamespace
(List<String> namespace, String actual) static String
printCapabilities
(org.osgi.framework.BundleContext bc, List<String> namespace, org.osgi.framework.Bundle[] bundles) private static boolean
printMatchingCapabilities
(org.osgi.framework.wiring.BundleWiring wiring, List<String> namespace, Formatter f) private static boolean
printMatchingRequirements
(org.osgi.framework.wiring.BundleWiring wiring, List<String> namespace, Formatter f) static String
printRequirements
(org.osgi.framework.BundleContext bc, List<String> namespace, org.osgi.framework.Bundle[] bundles) (package private) static boolean
printServiceCapabilities
(org.osgi.framework.Bundle b, Formatter f) (package private) static boolean
printServiceRequirements
(org.osgi.framework.Bundle b, Formatter f)
-
Field Details
-
NONSTANDARD_SERVICE_NAMESPACE
- See Also:
-
CAPABILITY
- See Also:
-
REQUIREMENT
- See Also:
-
EMPTY_MESSAGE
- See Also:
-
UNUSED_MESSAGE
- See Also:
-
UNRESOLVED_MESSAGE
- See Also:
-
m_bc
private final org.osgi.framework.BundleContext m_bc
-
-
Constructor Details
-
Inspect
public Inspect(org.osgi.framework.BundleContext bc)
-
-
Method Details
-
inspect
-
inspect
-
printCapabilities
-
printMatchingCapabilities
-
format
-
aggregateCapabilities
-
printServiceCapabilities
-
printRequirements
-
printMatchingRequirements
-
aggregateRequirements
-
printServiceRequirements
-
getVersionFromCapability
-
matchNamespace
-
isValidDirection
-