Examples of annotationType()


Examples of org.junit.Ignore.annotationType()

            public Class<? extends Annotation> annotationType() {
                return Ignore.class;
            }
        };

        assertEquals(Ignore.class, annotation.annotationType());
    }

    private Description describe(Class<?> testClass) {
        return Request.aClass(testClass).getRunner().getDescription();
    }
View Full Code Here

Examples of org.lwjgl.util.generator.CachedReference.annotationType()

        CachedReference cached_reference_annotation = param.getAnnotation(CachedReference.class);
        if (cached_reference_annotation != null && cached_reference_annotation.name().length() == 0) {
          Class nio_type = Utils.getNIOBufferType(param.getType());
          if (nio_type == null)
            throw new RuntimeException(param + " in method " + method + " in " + interface_decl + " is annotated with "
                + cached_reference_annotation.annotationType().getSimpleName() + " but the parameter is not a NIO buffer");
          writer.print("\t" + nio_type.getName() + " " + Utils.getReferenceName(interface_decl, method, param));
          writer.println(";");
        }
      }
    }
View Full Code Here

Examples of org.strecks.injection.annotation.InjectRequestParameter.annotationType()

    boolean ok = ReflectHelper.checkGenericType(converterClass, Converter.class, String.class);
    if (!ok)
    {
      Class sourceType = ReflectHelper.getGenericType(converterClass, Converter.class);
     
      throw new ApplicationConfigurationException("@" + input.annotationType().getSimpleName() + " in "
          + clazz.getName() + " uses converter " + converterClass.getName()
          + " whose conversion source type is " + sourceType.getName() + ", and not "
          + String.class.getName());
     
    }
View Full Code Here

Examples of se.unlogic.standardutils.dao.annotations.DAOManaged.annotationType()

              typePopulator = EnumPopulator.getInstanceFromListField(field);
           
          }

          if(typePopulator == null){
            throw new UnsupportedFieldTypeException("The annotated field " + field.getName() + " in class " + beanClass + " is of unsupported type " + field.getType(), field, annotation.annotationType() , beanClass);
          }
        }

        ReflectionUtils.fixFieldAccess(field);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.