Examples of FieldSignature


Examples of org.jboss.metadata.spi.signature.FieldSignature

   }
  
   public void testNotPublicFieldSuperClass() throws Exception
   {
      MetaData metaData = createMetaData();
      testTestAnnotation(metaData.getComponentMetaData(new FieldSignature("notPublicSuperClass")));
   }
View Full Code Here

Examples of org.jboss.metadata.spi.signature.FieldSignature

         for(PropertyInfo pi : properties)
         {
            FieldInfo field = pi.getFieldInfo();
            if (field != null)
            {
               Signature sis = new FieldSignature(field);
               MetaData cmdr = retrieval.getComponentMetaData(sis);
               if (cmdr != null)
               {
                  for(T plugin : getPlugins(ElementType.FIELD, null, annotationClasses))
                  {
View Full Code Here

Examples of org.jboss.metadata.spi.signature.FieldSignature

   private void updateAnnotations(MutableMetaDataRepository repository, ClassLoader classloader, ComponentMutableMetaData component, KernelControllerContext context, FieldInfo fieldInfo, Set<AnnotationMetaData> annotations, boolean add)
   {
      if (annotations == null || annotations.isEmpty())
         return;

      Signature signature = new FieldSignature(fieldInfo);
      ScopeKey scope = new ScopeKey(CommonLevels.JOINPOINT_OVERRIDE, fieldInfo.getName());
      updateAnnotations(repository, classloader, component, context, signature, scope, annotations, add);
   }
View Full Code Here

Examples of org.jboss.metadata.spi.signature.FieldSignature

         for(PropertyInfo pi : properties)
         {
            FieldInfo field = pi.getFieldInfo();
            if (field != null)
            {
               Signature sis = new FieldSignature(field);
               MetaData cmdr = retrieval.getComponentMetaData(sis);
               if (cmdr != null)
               {
                  for(T plugin : getPlugins(ElementType.FIELD, null, annotationClasses))
                  {
View Full Code Here

Examples of org.jboss.metadata.spi.signature.FieldSignature

            }
            return new ConstructorSignature(params);
         }
         if (member instanceof CtField)
         {
            return new FieldSignature(member.getName());
         }
         throw new IllegalArgumentException("Unknown member type: " + member);
      }
      catch (NotFoundException e)
      {
View Full Code Here

Examples of org.jboss.metadata.spi.signature.FieldSignature

               if (imetaData != null)
                  annotation = imetaData.getAnnotation(annotationType);
            }
            if(annotation == null && pi.getFieldInfo() != null)
            {
               Signature fis = new FieldSignature(pi.getFieldInfo());
               MetaData imetaData = metaData.getComponentMetaData(fis);
               if (imetaData != null)
                  annotation = imetaData.getAnnotation(annotationType);
            }
         }
View Full Code Here

Examples of org.jboss.metadata.spi.signature.FieldSignature

   public <T extends Annotation> T resolveTypedAnnotation(Field f, Class<T> annotation)
   {
      T value = null;
      if (metadata != null)
      {
         FieldSignature signature = new FieldSignature(f);
         MetaData fieldMD = metadata.getComponentMetaData(signature);
         if (fieldMD != null)
         {
            value = fieldMD.getAnnotation(annotation);
            if (value != null) return value;
View Full Code Here

Examples of org.jboss.metadata.spi.signature.FieldSignature

  
   public boolean hasAnnotation(Field m, String annotation)
   {
      if (metadata != null)
      {
         if (hasJoinPointAnnotation(m.getDeclaringClass(), new FieldSignature(m), annotation))
         {
            return true;
         }
      }
      try
View Full Code Here

Examples of org.jboss.metadata.spi.signature.FieldSignature

            Annotation[][] paramAnnotations = constructor.getParameterAnnotations();
            return new SimpleMetaDataLoader(paramAnnotations[constructorParametersSignature.getParam()]);
         }
         else if (signature instanceof FieldSignature)
         {
            FieldSignature fieldSignature = (FieldSignature) signature;
            Field field = fieldSignature.getField();
            if (field == null)
               field = SecurityActions.findField(clazz, signature.getName());
            if (field == null)
            {
               if (log.isTraceEnabled())
View Full Code Here

Examples of org.jboss.metadata.spi.signature.FieldSignature

   public <T extends Annotation> T resolveTypedAnnotation(Field f, Class<T> annotation)
   {
      T value = null;
      if (metadata != null)
      {
         FieldSignature signature = new FieldSignature(f);
         MetaData fieldMD = metadata.getComponentMetaData(signature);
         if (fieldMD != null)
         {
            value = fieldMD.getAnnotation(annotation);
            if (value != null) return value;
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.