public class GenericGrpcStubPostProcessorAdapter extends java.lang.Object implements GenericGrpcStubPostProcessor
GenericGrpcStubPostProcessor adapter that determines supported stub types
through introspecting the generically declared type of the delegate listener.| Constructor and Description |
|---|
GenericGrpcStubPostProcessorAdapter(GrpcStubPostProcessor delegate) |
| Modifier and Type | Method and Description |
|---|---|
io.grpc.stub.AbstractStub |
postProcess(io.grpc.stub.AbstractStub stub)
Apply this GrpcStubPostProcessor to the given new gRPC stub instance.
|
boolean |
supportsStubType(java.lang.Class<? extends io.grpc.stub.AbstractStub> stubClass)
Determine whether this stub post processor should apply to given stub type.
|
public GenericGrpcStubPostProcessorAdapter(GrpcStubPostProcessor delegate)
public boolean supportsStubType(java.lang.Class<? extends io.grpc.stub.AbstractStub> stubClass)
GenericGrpcStubPostProcessorsupportsStubType in interface GenericGrpcStubPostProcessorstubClass - the stub type (never null)true is this processor should be applied to the given
stub type; false otherwisepublic io.grpc.stub.AbstractStub postProcess(io.grpc.stub.AbstractStub stub)
GrpcStubPostProcessorpostProcess in interface GrpcStubPostProcessorstub - the new gRPC stub instance