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

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

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

/**
 * @author Bill Burke
 * @version $Revision: 1 $
 */
public class ResourceClass
{
   private static final FieldParameter[] EMPTY_FIELD_PARAMS = {};
   private static final SetterParameter[] EMPTY_SETTER_PARAMETERS = {};
   private static final ResourceMethod[] EMPTY_RESOURCE_METHODS = {};
   private static final ResourceLocator[] EMPTY_RESOURCE_LOCATORS = {};

   protected Class clazz;
   protected FieldParameter[] fields = EMPTY_FIELD_PARAMS;
   protected SetterParameter[] setters = EMPTY_SETTER_PARAMETERS;
   protected ResourceMethod[] resourceMethods = EMPTY_RESOURCE_METHODS;
   protected ResourceLocator[] resourceLocators = EMPTY_RESOURCE_LOCATORS;
   protected ResourceConstructor constructor; // only one allowed
   protected String path;

   public ResourceClass(Class clazz, String path)
   {
      this.clazz = clazz;
      this.path = path;
   }

   public String getPath()
   {
      return path;
   }

   public Class getClazz()
   {
      return clazz;
   }

   public ResourceConstructor getConstructor()
   {
      return constructor;
   }

   public FieldParameter[] getFields()
   {
      return fields;
   }

   public SetterParameter[] getSetters()
   {
      return setters;
   }

   public ResourceMethod[] getResourceMethods()
   {
      return resourceMethods;
   }

   public ResourceLocator[] getResourceLocators()
   {
      return resourceLocators;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy