Examples of annotationType()


Examples of java.lang.annotation.Annotation.annotationType()

      BeanMetaData bmd = akcc.getBeanMetaData();
      Set<AnnotationMetaData> annotations = bmd.getAnnotations();
      for (AnnotationMetaData annotationMetaData : annotations)
      {
         Annotation annotation = annotationMetaData.getAnnotationInstance();
         if (annotation.annotationType() == Password.class)
         {
            passwordAnnotations.add((Password) annotation);
         }
      }
      return passwordAnnotations;
View Full Code Here

Examples of java.lang.annotation.Annotation.annotationType()

            for (int ix = 0; ix < paramAnnotationArrays.length; ix++) {
                final Annotation[] paramAnnotations = paramAnnotationArrays[ix];
                if (paramAnnotations != null && paramAnnotations.length > 0) {
                    for (int jx = 0; jx < paramAnnotations.length; jx++) {
                        final Annotation paramAnnotation = paramAnnotations[jx];
                        if (ParameterDataUpdateContent.class.equals(paramAnnotation.annotationType())) {
                            if (foundIndex >= 0) {
                                throw new InvalidParameterException(String.format(
                                        "Multiple annotations of type [%s] found on method [%s]",
                                        ParameterDataUpdateContent.class.getName(),
                                        targetMethod.getName()
View Full Code Here

Examples of java.lang.annotation.Annotation.annotationType()

            for (int ix = 0; ix < paramAnnotationArrays.length; ix++) {
                final Annotation[] paramAnnotations = paramAnnotationArrays[ix];
                if (paramAnnotations != null && paramAnnotations.length > 0) {
                    for (int jx = 0; jx < paramAnnotations.length; jx++) {
                        final Annotation paramAnnotation = paramAnnotations[jx];
                        if (ParameterValueKeyProvider.class.equals(paramAnnotation.annotationType())) {
                            if (foundIndex >= 0) {
                                throw new InvalidParameterException(String.format(
                                        "Multiple annotations of type [%s] found on method [%s]",
                                        ParameterValueKeyProvider.class.getName(),
                                        targetMethod.getName()
View Full Code Here

Examples of java.lang.annotation.Annotation.annotationType()

          String id = null;
          try {
            id = (String) annotation.getClass().getMethod("value").invoke(annotation);
          } catch (Exception e) {
            throw new JibeRuntimeException("Annotation does not have value property: "
                + annotation.annotationType().getName());
          }

          if (StringUtils.isEmpty(id)) {
            id = String.format("%1$s.%2$s", beanName, method.getName());
          }
View Full Code Here

Examples of java.lang.annotation.Annotation.annotationType()

            // When assembling class annotations from a base class, you want to ignore any
            // that are not @Inherited.

            if (filterNonInherited)
            {
                Class<? extends Annotation> annotationType = a.annotationType();

                Inherited inherited = annotationType.getAnnotation(Inherited.class);

                if (inherited == null)
                    continue;
View Full Code Here

Examples of java.lang.annotation.Annotation.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 java.lang.annotation.Annotation.annotationType()

        Annotation[] annotations = m.getParameterAnnotations()[index];

        for (int i = 0; i < annotations.length; i++) {
            Annotation annotation = annotations[i];
            if (annotation.annotationType().equals(XmlParamType.class)) {
                return (XmlParamType)annotations[i];
            }
        }

        return null;
View Full Code Here

Examples of java.lang.annotation.Annotation.annotationType()

        Iterator<Annotation> it = annotationSet.iterator();
        while (it.hasNext())
        {
            Annotation an = it.next();
            if (annotationType.isAssignableFrom(an.annotationType()))
            {
                it.remove();
            }
        }
        annotationMap.remove(annotationType);
View Full Code Here

Examples of java.lang.annotation.Annotation.annotationType()

        Annotation[] annotations = method.getAnnotations();
        for (int j = 0; j < annotations.length; j++)
        {
            Annotation annotation = annotations[j];

            if (Service.class.equals(annotation.annotationType()))
            {
                processAnnotatedServiceMethod(
                        method,
                        (Service) annotation,
                        module,
View Full Code Here

Examples of java.lang.annotation.Annotation.annotationType()

                        method,
                        (Service) annotation,
                        module,
                        instanceProvider);
            }
            else if (Configuration.class.equals(annotation.annotationType()))
            {
                processAnnotatedConfigurationMethod(
                        method,
                        (Configuration) annotation,
                        module,
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.