Package org.jboss.annotation.javaee

Examples of org.jboss.annotation.javaee.Descriptions


/* 259 */     if (authType == Resource.AuthenticationType.APPLICATION)
/* 260 */       resAuthType = ResourceAuthorityType.Application;
/* 261 */     ref.setResAuth(resAuthType);
/* 262 */     if (annotation.mappedName().length() > 0)
/* 263 */       ref.setMappedName(annotation.mappedName());
/* 264 */     Descriptions descriptions = ProcessorUtils.getDescription(annotation.description());
/* 265 */     if (descriptions != null)
/*     */     {
/* 267 */       ref.setDescriptions(descriptions);
/*     */     }
/* 269 */     if (annotation.type() != Object.class)
View Full Code Here


/* 284 */     EnvironmentEntryMetaData entry = new EnvironmentEntryMetaData();
/* 285 */     String name = annotation.name();
/* 286 */     if (name.length() == 0)
/* 287 */       name = getName(element);
/* 288 */     entry.setEnvEntryName(name);
/* 289 */     Descriptions descriptions = ProcessorUtils.getDescription(annotation.description());
/* 290 */     if (descriptions != null)
/* 291 */       entry.setDescriptions(descriptions);
/* 292 */     if (annotation.type() != Object.class)
/* 293 */       entry.setType(annotation.type().getName());
/*     */     else
View Full Code Here

/* 339 */       ref.setMappedName(annotation.mappedName());
/* 340 */     if (annotation.type() != Object.class)
/* 341 */       ref.setType(annotation.type().getName());
/*     */     else
/* 343 */       ref.setType(getType(element));
/* 344 */     Descriptions descriptions = ProcessorUtils.getDescription(annotation.description());
/* 345 */     if (descriptions != null)
/* 346 */       ref.setDescriptions(descriptions);
/* 347 */     String injectionName = getInjectionName(element);
/* 348 */     Set injectionTargets = ProcessorUtils.getInjectionTargets(injectionName, element);
/* 349 */     if (injectionTargets != null) {
View Full Code Here

/* 363 */       ref.setMappedName(annotation.mappedName());
/* 364 */     if (annotation.type() != Object.class)
/* 365 */       ref.setType(annotation.type().getName());
/*     */     else
/* 367 */       ref.setType(getType(element));
/* 368 */     Descriptions descriptions = ProcessorUtils.getDescription(annotation.description());
/* 369 */     if (descriptions != null) {
/* 370 */       ref.setDescriptions(descriptions);
/*     */     }
/* 372 */     String injectionName = getInjectionName(element);
/* 373 */     Set injectionTargets = ProcessorUtils.getInjectionTargets(injectionName, element);
View Full Code Here

/*     */   public static DescriptionGroupMetaData getDescriptionGroup(String description) {
/* 135 */     DescriptionGroupMetaData dg = null;
/* 136 */     if (description.length() > 0)
/*     */     {
/* 138 */       dg = new DescriptionGroupMetaData();
/* 139 */       Descriptions descriptions = getDescription(description);
/* 140 */       dg.setDescriptions(descriptions);
/*     */     }
/* 142 */     return dg;
/*     */   }
View Full Code Here

/* 50 */     if (runAs == null) {
/* 51 */       return null;
/*    */     }
/* 53 */     RunAsMetaData metaData = new RunAsMetaData();
/* 54 */     metaData.setRoleName(runAs.value());
/* 55 */     Descriptions descriptions = ProcessorUtils.getDescription("RunAs(" + runAs.value() + ") on class: " + element.getName());
/* 56 */     metaData.setDescriptions(descriptions);
/* 57 */     return metaData;
/*    */   }
View Full Code Here

/*    */     }
/* 54 */     for (String role : roles.value())
/*    */     {
/* 56 */       SecurityRoleMetaData sr = new SecurityRoleMetaData();
/* 57 */       sr.setRoleName(role);
/* 58 */       Descriptions descriptions = ProcessorUtils.getDescription("DeclareRoles(" + roles.value() + ") on class: " + element.getName());
/* 59 */       sr.setDescriptions(descriptions);
/* 60 */       metaData.add(sr);
/*    */     }
/*    */   }
View Full Code Here

/*    */     }
/* 76 */     HashSet roles = new HashSet();
/* 77 */     for (String role : allowed.value())
/* 78 */       roles.add(role);
/* 79 */     perm.setRoles(roles);
/* 80 */     Descriptions descriptions = ProcessorUtils.getDescription("@RolesAllowed for: " + type);
/* 81 */     mmd.setDescriptions(descriptions);
/* 82 */     methods.add(mmd);
/* 83 */     metaData.add(perm);
/*    */   }
View Full Code Here

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

      }
      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);
      methods.add(mmd);
   }
View Full Code Here

TOP

Related Classes of org.jboss.annotation.javaee.Descriptions

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.