Package org.ocpsoft.rewrite.spi

Examples of org.ocpsoft.rewrite.spi.ConverterProvider


         Converter<?> converter = null;

         // let one of the SPI implementations build the converter
         Iterator<ConverterProvider> providers = ServiceLoader.load(ConverterProvider.class).iterator();
         while (providers.hasNext()) {
            ConverterProvider provider = providers.next();

            if (targetType != null) {
               converter = provider.getByTargetType(targetType);
            }
            else if (converterType != null) {
               converter = provider.getByConverterType(converterType);
            }
            else {
               converter = provider.getByConverterId(converterId);
            }

            if (converter != null) {
               break;
            }
View Full Code Here

TOP

Related Classes of org.ocpsoft.rewrite.spi.ConverterProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.