
org.jboss.resteasy.spi.PropertyInjector Maven / Gradle / Ivy
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 - 2025 Weber Informatics LLC | Privacy Policy