rewrite-impl 2.0.0.Alpha6

org.ocpsoft.rewrite.instance
Class DefaultConverterProvider

java.lang.Object
  extended by org.ocpsoft.rewrite.instance.DefaultConverterProvider
All Implemented Interfaces:
org.ocpsoft.common.pattern.Weighted, ConverterProvider

public class DefaultConverterProvider
extends Object
implements ConverterProvider

Default implementation of ConverterProvider which allows to use Rewrite Converter implementations by their type.

Author:
Christian Kaltepoth

Constructor Summary
DefaultConverterProvider()
           
 
Method Summary
 Converter<?> getByConverterId(String id)
           
 Converter<?> getByConverterType(Class<?> converterType)
           
 Converter<?> getByTargetType(Class<?> targetType)
           
 int priority()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConverterProvider

public DefaultConverterProvider()
Method Detail

getByConverterType

public Converter<?> getByConverterType(Class<?> converterType)
Specified by:
getByConverterType in interface ConverterProvider

getByTargetType

public Converter<?> getByTargetType(Class<?> targetType)
Specified by:
getByTargetType in interface ConverterProvider

getByConverterId

public Converter<?> getByConverterId(String id)
Specified by:
getByConverterId in interface ConverterProvider

priority

public int priority()
Specified by:
priority in interface org.ocpsoft.common.pattern.Weighted

rewrite-impl 2.0.0.Alpha6

Copyright © 2013 OCPsoft. All Rights Reserved.