Package org.jboss.metadata.spi.signature

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


/* 155 */     Set constructors = info.getConstructors();
/* 156 */     if ((constructors != null) && (!constructors.isEmpty()))
/*     */     {
/* 158 */       for (ConstructorInfo ci : constructors)
/*     */       {
/* 160 */         Signature cis = new ConstructorSignature(Configurator.getParameterTypes(trace, ci.getParameterTypes()));
/* 161 */         MetaData cmdr = retrieval.getComponentMetaData(cis);
/* 162 */         if (cmdr != null)
/*     */         {
/* 164 */           for (AnnotationPlugin plugin : this.constructorAnnotationPlugins)
/*     */           {
View Full Code Here


/*     */         {
/* 134 */           params = new String[parameterTypes.length];
/* 135 */           for (int i = 0; i < params.length; i++)
/* 136 */             params[i] = parameterTypes[i].getName();
/*     */         }
/* 138 */         return new ConstructorSignature(params);
/*     */       }
/* 140 */       if ((member instanceof CtField))
/*     */       {
/* 142 */         return new FieldSignature(member.getName());
/*     */       }
View Full Code Here

/*      */   public Object resolveAnnotation(Constructor c, Class annotation)
/*      */   {
/*  490 */     Object value = null;
/*  491 */     if (this.metadata != null)
/*      */     {
/*  493 */       ConstructorSignature signature = new ConstructorSignature(c);
/*  494 */       MetaData conMD = this.metadata.getComponentMetaData(signature);
/*  495 */       if (conMD != null)
/*      */       {
/*  497 */         value = conMD.getAnnotation(annotation);
/*  498 */         if (value != null) return value;
View Full Code Here

/*      */
/*      */   public boolean hasAnnotation(Constructor<?> m, String annotation)
/*      */   {
/*  580 */     if (this.metadata != null)
/*      */     {
/*  582 */       if (hasJoinPointAnnotationFromStringName(m.getDeclaringClass(), new ConstructorSignature(m), annotation))
/*      */       {
/*  584 */         return true;
/*      */       }
/*      */     }
/*  587 */     if (this.annotations.hasAnnotation(m, annotation)) return true;
View Full Code Here

   public Object resolveAnnotation(Constructor c, Class annotation)
   {
      Object 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 (hasJoinPointAnnotationFromStringName(m.getDeclaringClass(), new ConstructorSignature(m), annotation))
         {
            return true;
         }
      }
      if (annotations.hasAnnotation(m, annotation)) return true;
View Full Code Here

   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;
         }
      }
      try
View Full Code Here

      if (annotated instanceof Class)
      {
         Class<?> clazz = Class.class.cast(annotated);
         if (signature instanceof ConstructorSignature)
         {
            ConstructorSignature constructorSignature = (ConstructorSignature) signature;
            Constructor<?> constructor = constructorSignature.getConstructor();
            if (constructor == null)
               constructor = SecurityActions.findConstructor(clazz, signature.getParametersTypes(clazz));
            if (constructor == null)
            {
               if (log.isTraceEnabled())
View Full Code Here

      addJoinpointAnnotations(mutable, new FieldSignature(f), f.getName(), f.getAnnotations(), extraAnnotations);
   }
  
   private void addConstructorAnnotations(Constructor<?> c, MemoryMetaDataLoader mutable, Annotation[] extraAnnotations)
   {
      addJoinpointAnnotations(mutable, new ConstructorSignature(c), c.getName(), c.getAnnotations(), extraAnnotations);
   }
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.