Class DMCommand

java.lang.Object
org.apache.felix.dm.shell.DMCommand

public class DMCommand extends Object
Shell command for showing all services and dependencies that are managed by the dependency manager.
Author:
Felix Project Team
  • Constructor Details

    • DMCommand

      public DMCommand(org.osgi.framework.BundleContext context)
      Constructor.
  • Method Details

    • dm

      public void dm(org.apache.felix.service.command.CommandSession session, boolean nodeps, String compact, boolean notavail, boolean wtf, boolean stats, String services, String components, String componentIds, String bundleIds, int top) throws Throwable
      Dependency Manager "dm" command. We use gogo annotations, in order to automate documentation, and also to automatically manage optional flags/options and parameters ordering.
      Parameters:
      session - the gogo command session, used to get some variables declared in the shell This parameter is automatically passed by the gogo runtime.
      nodeps - false means that dependencies are not displayed
      compact - true means informations are displayed in a compact format. This parameter can also be set using the "dependencymanager.compact" gogo shell variable.
      notavail - only unregistered components / unavailable dependencies are displayed
      stats - true means some statistics are displayed
      services - an osgi filter used to filter on some given osgi service properties. This parameter can also be set using the "dependencymanager.services" gogo shell variable.
      components - a regular expression to match either component implementation class names. This parameter can also be set using the "dependencymanager.components" gogo shell variable.
      componentIds - only components matching one of the specified components ids are displayed
      bundleIds - a list of bundle ids or symbolic names, used to filter on some given bundles
      Throws:
      Throwable
    • wtf

      public void wtf()