| Methods in org.glassfish.hk2 that return Binder |
|
BinderFactory.bind(Class<T> contract,
Class<?>... contracts)
Starts a binding process of a service using at least one
interface or abstract class Class reference. |
Binder<Object> |
BinderFactory.bind(String... contractNames)
Starts the binding process of a service using String
interfaces names that can be used to lookup the service. |
Binder<Object> |
BinderFactory.bind(String contractName)
Binds a service using a String interface name. |
|
BinderFactory.bind(TypeLiteral<T> typeLiteral)
Binds a parameterized type by forcing users to create a subclass of
TypeLiteral which will allow HK2 to retrieve the parameterized
type at runtime. |