org.glassfish.hk2
Interface Binding<T>


public interface Binding<T>

A Binding represents a registered entry in the HK2 Services registry.

Author:
Jerome Dochez, Jeff Trent, Mason Taube

Method Summary
 Provider<T> getProvider(Context ctx)
          Return a Provider optionally providing contextual information for how the component provider will be used (e.g., for contextual injection, etc).
 

Method Detail

getProvider

Provider<T> getProvider(Context ctx)
Return a Provider optionally providing contextual information for how the component provider will be used (e.g., for contextual injection, etc).

The return value may be unique based on the provided contextual information. Caller's should therefore not assume identity equality in the return value.

Parameters:
ctx - contextual information for how the provider will be used, or null
Returns:
a non-null component provider instance


Copyright © 2011 Oracle Corporation. All Rights Reserved.