org.apache.aries.blueprint.sample
Class DateTypeConverter

java.lang.Object
  extended by org.apache.aries.blueprint.sample.DateTypeConverter
All Implemented Interfaces:
org.osgi.service.blueprint.container.Converter

public class DateTypeConverter
extends Object
implements org.osgi.service.blueprint.container.Converter


Constructor Summary
DateTypeConverter()
           
 
Method Summary
 boolean canConvert(Object fromValue, org.osgi.service.blueprint.container.ReifiedType toType)
           
 Object convert(Object source, org.osgi.service.blueprint.container.ReifiedType toType)
           
 void setFormat(String format)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateTypeConverter

public DateTypeConverter()
Method Detail

setFormat

public void setFormat(String format)

convert

public Object convert(Object source,
                      org.osgi.service.blueprint.container.ReifiedType toType)
               throws Exception
Specified by:
convert in interface org.osgi.service.blueprint.container.Converter
Throws:
Exception

canConvert

public boolean canConvert(Object fromValue,
                          org.osgi.service.blueprint.container.ReifiedType toType)
Specified by:
canConvert in interface org.osgi.service.blueprint.container.Converter


Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.