package org.jboss.resteasy.spi;

import javax.ws.rs.WebApplicationException;

Author:Bill Burke
Version:$Revision: 1 $
/** * @author <a href="mailto:bill@burkecentral.com">Bill Burke</a> * @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.
Params:
  • target – target object
/** * 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.
Params:
  • request – http request
  • response – http response
  • target – target object
Throws:
  • Failure – if application failure occurred
/** * 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 */
void inject(HttpRequest request, HttpResponse response, Object target) throws Failure, WebApplicationException, ApplicationException; }