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

org.jboss.resteasy.core.ValueInjector Maven / Gradle / Ivy

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

import org.jboss.resteasy.spi.HttpRequest;
import org.jboss.resteasy.spi.HttpResponse;

/**
 * @author Bill Burke
 * @version $Revision: 1 $
 */
public interface ValueInjector
{
   /**
    * Inject outside the context of an HTTP request.  For instance, a singleton may have proxiable and injectable
    * jax-rs objects like Request, UriInfo, or HttpHeaders.
    *
    * @return
    */
   Object inject();

   /**
    * Inject inside the context of an HTTP request.
    *
    * @param request
    * @param response
    * @return
    */
   Object inject(HttpRequest request, HttpResponse response);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy