Package com.googlecode.gwt.test.gin

Examples of com.googlecode.gwt.test.gin.GwtTestGinException


   @PatchMethod
   static <T> ScopedBindingBuilder bind(LinkedBindingBuilder<T> builder) {

      if (!(builder instanceof AbstractBindingBuilder)) {
         throw new GwtTestGinException("Not managed " + LinkedBindingBuilder.class.getSimpleName()
                  + " implementation : " + builder.getClass().getName());
      }

      Binding<T> binding = GwtReflectionUtils.<Binding<T>> getPrivateFieldValue(builder, "binding");

      Type type = binding.getKey().getTypeLiteral().getType();

      if (!(type instanceof Class)) {
         throw new GwtTestGinException("Not managed binded type : " + type);
      }

      Constructor<T> atInjectConstructor = getAtInjectConstructor((Class<T>) type);
      if (atInjectConstructor != null) {
         return builder.toConstructor(atInjectConstructor);
View Full Code Here

TOP

Related Classes of com.googlecode.gwt.test.gin.GwtTestGinException

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.