Class Converters

java.lang.Object
org.apache.felix.gogo.shell.Converters
All Implemented Interfaces:
org.apache.felix.service.command.Converter

public class Converters extends Object implements org.apache.felix.service.command.Converter
  • Field Details

    • context

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

    • Converters

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

    • print

      private CharSequence print(org.osgi.framework.Bundle bundle)
    • print

      private CharSequence print(org.osgi.framework.ServiceReference<?> ref)
    • getShortNames

      private CharSequence getShortNames(String[] list)
    • getShortName

      private CharSequence getShortName(String name)
    • getState

      private String getState(org.osgi.framework.Bundle bundle)
    • bundle

      public org.osgi.framework.Bundle bundle(org.osgi.framework.Bundle i)
    • convert

      public Object convert(Class<?> desiredType, Object in) throws Exception
      Specified by:
      convert in interface org.apache.felix.service.command.Converter
      Throws:
      Exception
    • convertServiceReference

      private Object convertServiceReference(Object in) throws org.osgi.framework.InvalidSyntaxException
      Throws:
      org.osgi.framework.InvalidSyntaxException
    • convertBundle

      private Object convertBundle(Object in)
    • format

      public CharSequence format(Object target, int level, org.apache.felix.service.command.Converter converter) throws IOException
      Specified by:
      format in interface org.apache.felix.service.command.Converter
      Throws:
      IOException
    • read

      private CharSequence read(InputStream in) throws IOException
      Throws:
      IOException