Package com.codiform.moo.translator

Examples of com.codiform.moo.translator.CachingTranslatorFactory


   * @param configuration
   *            the configuration for this instance of Moo
   */
  public Moo( Configuration configuration ) {
    this.sourcePropertyFactory = new CompositeSourcePropertyFactory();
    this.translatorFactory = new CachingTranslatorFactory( configuration, sourcePropertyFactory );
  }
View Full Code Here


  /**
   * Creates a translation session using a default caching translator factory.
   */
  public TranslationSession() {
    this( new CachingTranslatorFactory() );
  }
View Full Code Here

   * @param destinationClass
   *            a class representing the type to which translation should be performed
   * @return a 'curried' translate instance
   */
  public static <T> Translate<T> to( Class<T> destinationClass ) {
    return new Translate<T>( new CachingTranslatorFactory(), destinationClass );
  }
View Full Code Here

   * @param source
   *            the source of the update
   * @return the curried update operation
   */
  public static Update from(Object source) {
    return new Update(new CachingTranslatorFactory(), source);
  }
View Full Code Here

TOP

Related Classes of com.codiform.moo.translator.CachingTranslatorFactory

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.