Examples of annotationType()


Examples of org.apache.karaf.shell.commands.Argument.annotationType()

                public String valueToShowInHelp() {
                    return delegate.valueToShowInHelp();
                }

                public Class<? extends Annotation> annotationType() {
                    return delegate.annotationType();
                }
            };
        }
        return argument;
    }
View Full Code Here

Examples of org.apache.myfaces.extensions.validator.baseval.annotation.Pattern.annotationType()

        String validationErrorMsgKey = (annotation).validationErrorMsgKey();
        Locale currentLocale = FacesContext.getCurrentInstance().getViewRoot().getLocale();

        ValidationStrategy validationStrategy =
            ExtValUtils.getValidationStrategyForMetaData(annotation.annotationType().getName());

        String validationErrorMsg = ExtValUtils.getMessageResolverForValidationStrategy(validationStrategy)
            .getMessage(validationErrorMsgKey, currentLocale);

        results.put(CommonMetaDataKeys.PATTERN_VALIDATION_ERROR_MESSAGE, validationErrorMsg);
View Full Code Here

Examples of org.boco.seamwebappgen.annotations.LocalSearchOnAttribute.annotationType()

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

        if (annotation.annotationType().equals(org.boco.seamwebappgen.annotations.LocalSearchOnRelationship.class))
        {
          String attributesName[] = ((org.boco.seamwebappgen.annotations.LocalSearchOnRelationship) annotation).attributes();
          String relationshipName = methods[j].getName();
          Relationship relationship = null;
View Full Code Here

Examples of org.boco.seamwebappgen.annotations.ShowAttributeInList.annotationType()

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

        if (annotation.annotationType().equals(ShowRelationshipAttributesInList.class))
        {
          String attributesName[] = ((ShowRelationshipAttributesInList) annotation).names();
          int    attributesOrder[] = ((ShowRelationshipAttributesInList) annotation).orders();
          String widths[] = ((ShowRelationshipAttributesInList) annotation).widths();
         
View Full Code Here

Examples of org.boco.seamwebappgen.annotations.ShowTransientAttributeInList.annotationType()

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

        if (annotation.annotationType().equals(ShowRelationshipAttributesInList.class))
        {
          String attributesName[] = ((ShowRelationshipAttributesInList) annotation).names();
          int    attributesOrder[] = ((ShowRelationshipAttributesInList) annotation).orders();
          String widths[] = ((ShowRelationshipAttributesInList) annotation).widths();
         
View Full Code Here

Examples of org.codehaus.backport175.reader.Annotation.annotationType()

    public void testJava5ClassAnnotation() {
        Annotation reader = org.codehaus.backport175.reader.Annotations.getAnnotation(
                Target5.Test.class, Target5.class
        );
        Class type = reader.annotationType();
        assertEquals(Target5.Test.class, type);

        Target5.Test test = (Target5.Test)reader;
        assertEquals("test", test.test());
    }
View Full Code Here

Examples of org.jboss.ejb.DeclareRolesImpl.annotationType()

         if (dd.getUnauthenticatedPrincipal() != null)
            annotation.setUnauthenticatedPrincipal(dd
                  .getUnauthenticatedPrincipal());

         addClassAnnotation(container, annotation.annotationType(), annotation);
      } else if (dd.getSecurityDomain() != null)
      {
         String securityDomain = dd.getSecurityDomain();

         SecurityDomainImpl annotation = new SecurityDomainImpl(securityDomain);
View Full Code Here

Examples of org.jboss.ejb.PermitAllImpl.annotationType()

         if (dd.getUnauthenticatedPrincipal() != null)
            annotation.setUnauthenticatedPrincipal(dd
                  .getUnauthenticatedPrincipal());

         addClassAnnotation(container, annotation.annotationType(), annotation);
      } else if (dd.getSecurityDomain() != null)
      {
         String securityDomain = dd.getSecurityDomain();

         SecurityDomainImpl annotation = new SecurityDomainImpl(securityDomain);
View Full Code Here

Examples of org.jboss.ejb.RolesAllowedImpl.annotationType()

         if (dd.getUnauthenticatedPrincipal() != null)
            annotation.setUnauthenticatedPrincipal(dd
                  .getUnauthenticatedPrincipal());

         addClassAnnotation(container, annotation.annotationType(), annotation);
      } else if (dd.getSecurityDomain() != null)
      {
         String securityDomain = dd.getSecurityDomain();

         SecurityDomainImpl annotation = new SecurityDomainImpl(securityDomain);
View Full Code Here

Examples of org.jboss.ejb.RunAsImpl.annotationType()

         RunAsMetaData runAs = identity.getRunAs();
         RunAsImpl annotation = null;
         if (runAs != null)
         {
            annotation = new RunAsImpl(runAs.getRoleName());
            addClassAnnotation(container, annotation.annotationType(),
                  annotation);
         }
        
         String runAsPrincipal = identity.getRunAsPrincipal();
         if (runAsPrincipal != null)
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.