All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.resteasy.spi.metadata.ConstructorParameter Maven / Gradle / Ivy

There is a newer version: 1.1.1
Show newest version
package org.jboss.resteasy.spi.metadata;

import java.lang.annotation.Annotation;
import java.lang.reflect.AccessibleObject;
import java.lang.reflect.Type;

/**
 * @author Bill Burke
 * @version $Revision: 1 $
 */
public class ConstructorParameter extends Parameter
{
   protected Annotation[] annotations = {};
   protected ResourceConstructor constructor;

   protected ConstructorParameter(ResourceConstructor constructor, Class type, Type genericType, Annotation[] annotations)
   {
      super(constructor.getResourceClass(), type, genericType);
      this.annotations = annotations;
      this.constructor = constructor;
   }

   @Override
   public AccessibleObject getAccessibleObject()
   {
      return constructor.getConstructor();
   }

   public Annotation[] getAnnotations()
   {
      return annotations;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy