Forge - Convert Impl 2.0.0.Alpha3

org.jboss.forge.convert.impl
Class MethodConverter<S,T>

java.lang.Object
  extended by org.jboss.forge.convert.AbstractConverter<S,T>
      extended by org.jboss.forge.convert.impl.MethodConverter<S,T>
All Implemented Interfaces:
Converter<S,T>

@Vetoed
public class MethodConverter<S,T>
extends AbstractConverter<S,T>


Constructor Summary
MethodConverter(Class<S> sourceType, Class<T> targetType, Object instance, Method method)
          Creates a converter based in a method
 
Method Summary
 T convert(S source)
           
 
Methods inherited from class org.jboss.forge.convert.AbstractConverter
getSourceType, getTargetType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodConverter

public MethodConverter(Class<S> sourceType,
                       Class<T> targetType,
                       Object instance,
                       Method method)
Creates a converter based in a method

Parameters:
instance - the target object. May be null if the method is static
method -
sourceType -
targetType -
Method Detail

convert

public T convert(S source)

Forge - Convert Impl 2.0.0.Alpha3

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.