Class ComponentCommandsScrInfo

  • All Implemented Interfaces:
    ScrInfo

    public class ComponentCommandsScrInfo
    extends java.lang.Object
    implements ScrInfo
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void config​(java.io.PrintWriter out)
      List in text the current SCR configuration
      private org.osgi.framework.Bundle findBundle​(java.lang.String bsn)  
      private java.lang.CharSequence format​(java.lang.Object info, java.io.PrintWriter out, int level)  
      private long getBundleID​(java.lang.String bundleIdentifier)  
      void info​(java.lang.String componentId, java.io.PrintWriter out)
      List in text detailed information about the specified components.
      void list​(java.lang.String bundleIdentifier, java.io.PrintWriter out)
      List in text the components for the bundle specified, or all components if null, sorted by component ID
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • context

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

      • ComponentCommandsScrInfo

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

      • list

        public void list​(java.lang.String bundleIdentifier,
                         java.io.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​(java.lang.String bundleIdentifier)
      • info

        public void info​(java.lang.String componentId,
                         java.io.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 java.lang.CharSequence format​(java.lang.Object info,
                                              java.io.PrintWriter out,
                                              int level)
      • config

        public void config​(java.io.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​(java.lang.String bsn)