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

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

There is a newer version: 4.0.0.Beta5
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 MethodParameter extends Parameter
{
   protected Annotation[] annotations = {};
   protected ResourceLocator locator;

   protected MethodParameter(final ResourceLocator locator, final String name, final Class type, final Type genericType,final Annotation[] annotations)
   {
      super(locator.getResourceClass(), type, genericType);
      this.annotations = annotations;
      this.locator = locator;
      this.paramName = name;
   }

   @Override
   public AccessibleObject getAccessibleObject()
   {
      return locator.getMethod();
   }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy