Package org.jboss.metadata.spi.signature

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


   public <T extends Annotation> T resolveTypedAnnotation(Constructor<?> c, Class<T> annotation)
   {
      T value = null;
      if (metadata != null)
      {
         ConstructorSignature signature = new ConstructorSignature(c);
         MetaData conMD = metadata.getComponentMetaData(signature);
         if (conMD != null)
         {
            value = conMD.getAnnotation(annotation);
            if (value != null) return value;
View Full Code Here


   public boolean hasAnnotation(Constructor<?> m, String annotation)
   {
      if (metadata != null)
      {
         if (hasJoinPointAnnotation(m.getDeclaringClass(), new ConstructorSignature(m), annotation))
         {
            return true;
         }
      }
      if (annotations.hasAnnotation(m, annotation)) return true;
View Full Code Here

      super(name);
   }

   protected ConstructorSignature getStringParameterConstructorSignature()
   {
      return new ConstructorSignature(new String[]{Calendar.class.getName()});
   }
View Full Code Here

      return new ConstructorSignature(new String[]{Calendar.class.getName()});
   }

   protected ConstructorSignature getDefaultConstructorSignature()
   {
      return new ConstructorSignature();
   }
View Full Code Here

      return new ConstructorSignature();
   }

   protected ConstructorSignature getClassParameterConstructorSignature() throws Exception
   {
      return new ConstructorSignature(getConstructor());
   }
View Full Code Here

      return new ConstructorSignature(getConstructor());
   }

   protected ConstructorSignature getClassInfoParameterConstructorSignature() throws Exception
   {
      return new ConstructorSignature(getConstructorInfo());
   }
View Full Code Here

   }
  
   public void testConstructorEmpty() throws Exception
   {
      MetaData metaData = setupConstructor();
      metaData = metaData.getComponentMetaData(new ConstructorSignature());
      testEmpty(metaData);
   }
View Full Code Here

   }
  
   public void testConstructorTestAnnotation() throws Exception
   {
      MetaData metaData = setupConstructor();
      metaData = metaData.getComponentMetaData(new ConstructorSignature(String.class));
      testTestAnnotation(metaData);
   }
View Full Code Here

   }
  
   public void testConstructorTestAnnotation12() throws Exception
   {
      MetaData metaData = setupConstructor();
      metaData = metaData.getComponentMetaData(new ConstructorSignature(String.class, Class.class));
      testTestAnnotation12(metaData);
   }
View Full Code Here

            assertSame(annotation, cmmd.removeAnnotation(sig, TestAnnotation.class));
         }
      }
      Constructor<?> c = getConstructor();
      ConstructorInfo ci = getConstructorInfo();
      Signature sc = new ConstructorSignature(c);
      checkAnnotationCycle(sc, c, ci);
      Method m = getMethod();
      MethodInfo mi = getMethodInfo();
      Signature sm = new MethodSignature(m);
      checkAnnotationCycle(sm, m, mi);
View Full Code Here

TOP

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

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.