Package com.google.gwt.i18n.server.impl

Examples of com.google.gwt.i18n.server.impl.ReflectionMessageInterface


  protected abstract MessageCatalogFactory getMessageCatalogFactory();

  protected byte[] run(Class<? extends LocalizableResource> clazz)
      throws MessageProcessingException, IOException {
    MessageCatalogFactory factory = getMessageCatalogFactory();
    MessageInterface msgIntf = new ReflectionMessageInterface(localeFactory,
        clazz);
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    Context ctx = new MockMessageCatalogContext(baos);
    Writer writer = factory.getWriter(ctx,
        clazz.getCanonicalName());
    try {
      MessageInterfaceVisitor cv = writer.visitClass();
      msgIntf.accept(cv);
    } finally {
      writer.close();
    }
    return baos.toByteArray();
  }
View Full Code Here


    public GenericProxy(Class<? extends LocalizableResource> _itf, String lang)
            throws IOException, InvalidParameterException {
        this.itf = _itf;
        messageInterface =
                new ReflectionMessageInterface(gwtLocaleFactory, _itf);
        fillProperties(itf, lang);
    }
View Full Code Here

TOP

Related Classes of com.google.gwt.i18n.server.impl.ReflectionMessageInterface

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.