ma.glasnost.orika.converter
Class CustomConverterBase<S,D>

java.lang.Object
  extended by ma.glasnost.orika.converter.CustomConverterBase<S,D>
Type Parameters:
S - the source type
D - the destination type
All Implemented Interfaces:
Converter<S,D>, MappedTypePair<S,D>
Direct Known Subclasses:
StringToEnumConverter, TypeConverter

Deprecated. use CustomConverter instead

@Deprecated
public abstract class CustomConverterBase<S,D>
extends Object
implements Converter<S,D>

CustomConverterBase provides a utility base for creating customized converters, which determines type parameters automatically.

It is recommend to extend this class to create your own custom converters.

Author:
matt.deboer@gmail.com

Nested Class Summary
 
Nested classes/interfaces inherited from interface ma.glasnost.orika.converter.Converter
Converter.LegacyConverter<S,D>
 
Field Summary
protected  Type<D> destinationType
          Deprecated.  
protected  MapperFacade mapperFacade
          Deprecated.  
protected  Type<S> sourceType
          Deprecated.  
 
Constructor Summary
CustomConverterBase()
          Deprecated.  
 
Method Summary
 boolean canConvert(Class<S> sourceClass, Class<? extends D> destinationClass)
          Deprecated.  
 boolean canConvert(Type<?> sourceClass, Type<?> destinationClass)
          Deprecated.  
 Type<S> getAType()
          Deprecated.  
 Type<D> getBType()
          Deprecated.  
 void setMapperFacade(MapperFacade mapperFacade)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ma.glasnost.orika.converter.Converter
convert
 

Field Detail

sourceType

protected final Type<S> sourceType
Deprecated. 

destinationType

protected final Type<D> destinationType
Deprecated. 

mapperFacade

protected MapperFacade mapperFacade
Deprecated. 
Constructor Detail

CustomConverterBase

public CustomConverterBase()
Deprecated. 
Method Detail

canConvert

public boolean canConvert(Class<S> sourceClass,
                          Class<? extends D> destinationClass)
Deprecated. 
Specified by:
canConvert in interface Converter<S,D>

canConvert

public boolean canConvert(Type<?> sourceClass,
                          Type<?> destinationClass)
Deprecated. 

setMapperFacade

public void setMapperFacade(MapperFacade mapperFacade)
Deprecated. 

getAType

public Type<S> getAType()
Deprecated. 
Specified by:
getAType in interface MappedTypePair<S,D>
Returns:
the 'A' type for this mapped pair

getBType

public Type<D> getBType()
Deprecated. 
Specified by:
getBType in interface MappedTypePair<S,D>
Returns:
the 'B' type for this mapped pair


Copyright © 2013 Glasnost. All Rights Reserved.