Class ServiceFinderBinder<T>

  • Type Parameters:
    T - contract type.
    All Implemented Interfaces:
    Binder

    public class ServiceFinderBinder<T>
    extends AbstractBinder
    Simple ServiceFinder injection binder. Looks for all implementations of a given contract using ServiceFinder and registers found instances to InjectionManager.
    • Field Detail

      • contract

        private final java.lang.Class<T> contract
      • applicationProperties

        private final java.util.Map<java.lang.String,​java.lang.Object> applicationProperties
      • runtimeType

        private final javax.ws.rs.RuntimeType runtimeType
    • Constructor Detail

      • ServiceFinderBinder

        public ServiceFinderBinder​(java.lang.Class<T> contract,
                                   java.util.Map<java.lang.String,​java.lang.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 be null.
        runtimeType - runtime (client or server) where the service finder binder is used.
    • Method Detail

      • configure

        protected void configure()
        Description copied from class: AbstractBinder
        Implement to provide binding definitions using the exposed binding methods.
        Specified by:
        configure in class AbstractBinder