
org.jboss.resteasy.spi.metadata.ConstructorParameter Maven / Gradle / Ivy
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(final ResourceConstructor constructor, final String name, final Class> type, final Type genericType, final Annotation[] annotations)
{
super(constructor.getResourceClass(), type, genericType);
this.annotations = annotations;
this.constructor = constructor;
this.paramName = name;
}
@Override
public AccessibleObject getAccessibleObject()
{
return constructor.getConstructor();
}
public Annotation[] getAnnotations()
{
return annotations;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy