@FunctionalInterface public interface StubTransformer
GrpcClientBeanPostProcessor to configure the stubs before they are
assigned to their fields. Implementations should only call the AbstractStub#with... methods on the given
stubs and return that result. Implementations should not use this transformer to replace the stub with a unrelated
other instance.
Note: StubTransformer will only transform AbstractStubs and NOT Channels. To configure
channels use the GrpcChannelFactory.
| Modifier and Type | Method and Description |
|---|---|
AbstractStub<?> |
transform(String name,
AbstractStub<?> stub)
Transform the given stub using
AbstractStub#with... methods. |
AbstractStub<?> transform(String name, AbstractStub<?> stub)
AbstractStub#with... methods.name - The name that was used to create the stub.stub - The stub that should be transformed.