Examples of Descriptions


Examples of org.jboss.annotation.javaee.Descriptions

         ref.setMappedName(annotation.mappedName());
      if(annotation.type() != Object.class)
         ref.setType(annotation.type().getName());
      else
         ref.setType(getType(element));
      Descriptions descriptions = ProcessorUtils.getDescription(annotation.description());
      if(descriptions != null)
         ref.setDescriptions(descriptions);

      String injectionName = getInjectionName(element);
      Set<ResourceInjectionTargetMetaData> injectionTargets = ProcessorUtils.getInjectionTargets(injectionName, element);
View Full Code Here

Examples of org.jboss.annotation.javaee.Descriptions

      }
      HashSet<String> roles = new HashSet<String>();
      for(String role : allowed.value())
         roles.add(role);
      perm.setRoles(roles);
      Descriptions descriptions = ProcessorUtils.getDescription("@RolesAllowed for: "+type);
      mmd.setDescriptions(descriptions);
      methods.add(mmd);
      metaData.add(perm);
   }
View Full Code Here

Examples of org.jboss.annotation.javaee.Descriptions

      }
      String ejbName = EjbNameThreadLocal.ejbName.get();
      if(ejbName == null)
         ejbName = "*";
      MethodMetaData mmd = ProcessorUtils.createMethod(ejbName, method);
      Descriptions descriptions = ProcessorUtils.getDescription("@DenyAll for: "+method);
      mmd.setDescriptions(descriptions);
      log.trace("add " + mmd);
      methods.add(mmd);
   }
View Full Code Here

Examples of org.jboss.annotation.javaee.Descriptions

      {
         methods = new MethodsMetaData();
         perm.setMethods(methods);
      }
      perm.setUnchecked(new EmptyMetaData());
      Descriptions descriptions = ProcessorUtils.getDescription("@PermitAll for: "+type);
      mmd.setDescriptions(descriptions);
      methods.add(mmd);
      metaData.add(perm);
   }
View Full Code Here

Examples of org.jboss.annotation.javaee.Descriptions

   {
      DescriptionGroupMetaData dg = null;
      if(description.length() > 0)
      {
         dg = new DescriptionGroupMetaData();
         Descriptions descriptions = getDescription(description);
         dg.setDescriptions(descriptions);
      }
      return dg;     
   }
View Full Code Here

Examples of org.jboss.annotation.javaee.Descriptions

      return ccmd;
   }

   public Descriptions getDescriptions()
   {
      Descriptions descriptions = null;
      if(primary != null )
         descriptions = primary.getDescriptions();
      if(descriptions == null)
         descriptions = defaults.getDescriptions();
      return descriptions;
View Full Code Here

Examples of org.jboss.annotation.javaee.Descriptions

         ref.setMappedName(annotation.mappedName());
      if (annotation.type() != Object.class)
         ref.setType(annotation.type().getName());
      else
         ref.setType(getType(element));
      Descriptions descriptions = ProcessorUtils.getDescription(annotation.description());
      if (descriptions != null)
         ref.setDescriptions(descriptions);

      String injectionName = getInjectionName(element);
      Set<ResourceInjectionTargetMetaData> injectionTargets = ProcessorUtils
View Full Code Here

Examples of org.jboss.annotation.javaee.Descriptions

      return ccmd;
   }

   public Descriptions getDescriptions()
   {
      Descriptions descriptions = null;
      if(primary != null )
         descriptions = primary.getDescriptions();
      if(descriptions == null)
         descriptions = defaults.getDescriptions();
      return descriptions;
View Full Code Here

Examples of org.jboss.annotation.javaee.Descriptions

      if(runAs == null)
         return null;

      RunAsMetaData metaData = new RunAsMetaData();
      metaData.setRoleName(runAs.value());
      Descriptions descriptions = ProcessorUtils.getDescription("RunAs("+runAs.value()+") on class: "+element.getName());
      metaData.setDescriptions(descriptions);
      return metaData;
   }
View Full Code Here

Examples of org.jboss.annotation.javaee.Descriptions

      for(String role : roles.value())
      {
         SecurityRoleMetaData sr = new SecurityRoleMetaData();
         sr.setRoleName(role);
         Descriptions descriptions = ProcessorUtils.getDescription("DeclareRoles("+roles.value()+") on class: "+element.getName());
         sr.setDescriptions(descriptions);
         metaData.add(sr);
      }
   }
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.