public interface StubFactory
Modifier and Type | Method and Description |
---|---|
io.grpc.stub.AbstractStub<?> |
createStub(Class<? extends io.grpc.stub.AbstractStub<?>> stubType,
io.grpc.Channel channel)
Creates a stub of the given type.
|
boolean |
isApplicable(Class<? extends io.grpc.stub.AbstractStub<?>> stubType)
Used to resolve a factory that matches the particular stub type.
|
io.grpc.stub.AbstractStub<?> createStub(Class<? extends io.grpc.stub.AbstractStub<?>> stubType, io.grpc.Channel channel)
stubType
- The type of the stub to create.channel
- The channel used to create the stub.BeanInstantiationException
- If the stub couldn't be created.boolean isApplicable(Class<? extends io.grpc.stub.AbstractStub<?>> stubType)
stubType
- The type of the stub that needs to be created.