org.ow2.shelbie.core.internal.converter
Class ServiceReferenceConverter

java.lang.Object
  extended by org.ow2.shelbie.core.internal.converter.ServiceReferenceConverter
All Implemented Interfaces:
org.apache.felix.service.command.Converter

public class ServiceReferenceConverter
extends Object
implements org.apache.felix.service.command.Converter

Author:
Loris Bouzonnet

Field Summary
 
Fields inherited from interface org.apache.felix.service.command.Converter
CONVERTER_CLASSES, INSPECT, LINE, PART
 
Constructor Summary
ServiceReferenceConverter(org.osgi.framework.BundleContext context)
           
 
Method Summary
 Object convert(Class<?> desiredType, Object in)
           
 CharSequence format(Object target, int level, org.apache.felix.service.command.Converter converter)
           
protected  CharSequence getShortName(String name)
           
protected  CharSequence getShortNames(String[] list)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceReferenceConverter

public ServiceReferenceConverter(org.osgi.framework.BundleContext context)
Method Detail

convert

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

format

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

getShortNames

protected CharSequence getShortNames(String[] list)

getShortName

protected CharSequence getShortName(String name)


Copyright © 2013 OW2 Consortium. All Rights Reserved.