Class ComponentCommandsScrInfo

java.lang.Object
org.apache.felix.scr.impl.ComponentCommandsScrInfo
All Implemented Interfaces:
ScrInfo

public class ComponentCommandsScrInfo extends Object implements ScrInfo
  • Field Details

    • commands

      private final ComponentCommands commands
    • context

      private final org.osgi.framework.BundleContext context
  • Constructor Details

    • ComponentCommandsScrInfo

      ComponentCommandsScrInfo(ComponentCommands commands, org.osgi.framework.BundleContext context)
  • Method Details

    • list

      public void list(String bundleIdentifier, PrintWriter out)
      Description copied from interface: ScrInfo
      List in text the components for the bundle specified, or all components if null, sorted by component ID
      Specified by:
      list in interface ScrInfo
      Parameters:
      bundleIdentifier - bundle the components are in or null for all components
      out - PrintStream for normal output
    • getBundleID

      private long getBundleID(String bundleIdentifier)
    • info

      public void info(String componentId, PrintWriter out)
      Description copied from interface: ScrInfo
      List in text detailed information about the specified components. Components can be specified by numeric componentId, component name, a regexp to match for component name, or null for all components.
      Specified by:
      info in interface ScrInfo
      Parameters:
      componentId - specifier for desired components
      out - PrintStream for normal output
    • format

      private CharSequence format(Object info, PrintWriter out, int level)
    • config

      public void config(PrintWriter out)
      Description copied from interface: ScrInfo
      List in text the current SCR configuration
      Specified by:
      config in interface ScrInfo
      Parameters:
      out - PrintStream for output.
    • findBundle

      private org.osgi.framework.Bundle findBundle(String bsn)