|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Binding<T>
A Binding represents a single registered entry in the HK2 Services
registry that provides a facility to get to contextual provider instances.
Services
whereas
a Provider
provides the runtime services for the given registered
Binding entry in the correct context appropriate for the caller.
Method Summary | |
---|---|
Descriptor |
getDescriptor()
The Descriptor fully characterizes the attributes
of this Provider. |
Provider<T> |
getProvider()
Return a Provider with providing contextual information
on how the provider will be used. |
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 |
---|
Descriptor getDescriptor()
Descriptor
fully characterizes the attributes
of this Provider.
Provider<T> getProvider(Context ctx)
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.
ctx
- contextual information for how the provider will be used, or null
Provider<T> getProvider()
Provider
with providing contextual information
on how the provider will be used. Equivalent to calling
getProvider(null).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |