Class ServiceClientFactoryImpl

    • Constructor Detail

      • ServiceClientFactoryImpl

        public ServiceClientFactoryImpl()
        The constructor.
    • Method Detail

      • create

        public <S> S create​(Class<S> serviceInterface)
        Specified by:
        create in interface ServiceClientFactory
        Type Parameters:
        S - the generic type of the serviceInterface. For flexibility and being not invasive this generic is not bound to Service (S extends Service).
        Parameters:
        serviceInterface - the Class reflecting the interface that defines the API of your Service.
        Returns:
        a new instance of the given serviceInterface that is a client stub. Invocations to any of the service methods will trigger a remote call and synchronously return the result.
      • create

        public <S> S create​(Class<S> serviceInterface,
                            Map<String,​String> properties)
        Specified by:
        create in interface ServiceClientFactory
        Type Parameters:
        S - the generic type of the serviceInterface. For flexibility and being not invasive this generic is not bound to Service (S extends Service).
        Parameters:
        serviceInterface - the Class reflecting the interface that defines the API of your Service.
        properties - the Map with explicit configuration properties. See ServiceConfigProperties for further details.
        Returns:
        a new instance of the given serviceInterface that is a client stub. Invocations to any of the service methods will trigger a remote call and synchronously return the result.
      • customizeHeaders

        private <S> void customizeHeaders​(ServiceContextImpl<S> context)