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

org.jboss.resteasy.spi.PropertyInjector Maven / Gradle / Ivy

There is a newer version: 4.0.0.Beta5
Show newest version
package org.jboss.resteasy.spi;

import javax.ws.rs.WebApplicationException;

/**
 * @author Bill Burke
 * @version $Revision: 1 $
 */
public interface PropertyInjector
{
   /**
    * Inject values into annotated properties (fields/setter methods) of the target object.
    * This method should only be used outside the scope of an HTTP request.
    *
    * @param target target object
    */
   void inject(Object target);

   /**
    * Inject values into annotated properties (fields/setter methods) of the target object.
    * This method should only be used inside the scope of an HTTP request.
    *
    * @param request http request
    * @param response http response
    * @param target target object
    * @throws Failure if application failure occurred
    * @throws WebApplicationException if application exception occurred
    */
   void inject(HttpRequest request, HttpResponse response, Object target) throws Failure, WebApplicationException, ApplicationException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy