Package org.jboss.metadata.spi.signature

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


   protected MetaData setupField()
   {
      MemoryMetaDataLoader loader = new MemoryMetaDataLoader();
      MemoryMetaDataLoader component = new MemoryMetaDataLoader();
      loader.addComponentMetaDataRetrieval(new FieldSignature("empty"), component);
      component = new MemoryMetaDataLoader();
      component.addAnnotation(new TestAnnotationImpl());
      loader.addComponentMetaDataRetrieval(new FieldSignature("testAnnotation"), component);
      component = new MemoryMetaDataLoader();
      component.addAnnotation(new TestAnnotation1Impl());
      component.addAnnotation(new TestAnnotation2Impl());
      loader.addComponentMetaDataRetrieval(new FieldSignature("testAnnotation12"), component);
      return new MetaDataRetrievalToMetaDataBridge(loader);
   }
View Full Code Here


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

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

         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

   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

         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

            }
            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

               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

   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

  
   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

TOP

Related Classes of org.jboss.metadata.spi.signature.FieldSignature

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.