Class ServiceFinderBinder<T>
java.lang.Object
org.glassfish.jersey.internal.inject.AbstractBinder
org.glassfish.jersey.internal.ServiceFinderBinder<T>
- Type Parameters:
T- contract type.
- All Implemented Interfaces:
Binder
Simple ServiceFinder injection binder.
Looks for all implementations of a given contract using
ServiceFinder
and registers found instances to InjectionManager.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final javax.ws.rs.RuntimeType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidImplement to provide binding definitions using the exposed binding methods.Methods inherited from class AbstractBinder
bind, bind, bind, bind, bindAsContract, bindAsContract, bindAsContract, bindFactory, bindFactory, bindFactory, createManagedInstanceProvider, getBindings, install
-
Field Details
-
contract
-
applicationProperties
-
runtimeType
private final javax.ws.rs.RuntimeType runtimeType
-
-
Constructor Details
-
ServiceFinderBinder
public ServiceFinderBinder(Class<T> contract, Map<String, Object> applicationProperties, javax.ws.rs.RuntimeType runtimeType) Create a new service finder injection binder.- Parameters:
contract- contract of the service providers bound by this binder.applicationProperties- map containing application properties. May benull.runtimeType- runtime (client or server) where the service finder binder is used.
-
-
Method Details
-
configure
protected void configure()Description copied from class:AbstractBinderImplement to provide binding definitions using the exposed binding methods.- Specified by:
configurein classAbstractBinder
-