org.codegist.crest.injector
Interface Injector<T>

All Known Implementing Classes:
DefaultInjector

public interface Injector<T>

Injectors are used to inject any method parameter values in the http request before it gets fired. They can modify the http request as wanted.

If implementor declares a constructor with a Map argument, it will be called with the user custom properties.

Author:
Laurent Gilles (laurent.gilles@codegist.org)
See Also:
InterfaceContext.getProperties()

Method Summary
 void inject(HttpRequest.Builder builder, ParamContext<T> context)
          Injects the current param into the request.
 

Method Detail

inject

void inject(HttpRequest.Builder builder,
            ParamContext<T> context)
Injects the current param into the request.

Parameters:
builder - Current http request being build.
context - The current param context holding the value of the current method argument and all other context objects.


Copyright © 2011. All Rights Reserved.