public final class FallbackStubFactory extends Object implements StubFactory
| Constructor and Description |
|---|
FallbackStubFactory() |
| Modifier and Type | Method and Description |
|---|---|
AbstractStub<?> |
createStub(Class<? extends AbstractStub<?>> stubType,
Channel channel)
Creates a stub of the given type.
|
boolean |
isApplicable(Class<? extends AbstractStub<?>> stubType)
Used to resolve a factory that matches the particular stub type.
|
public boolean isApplicable(Class<? extends AbstractStub<?>> stubType)
StubFactoryisApplicable in interface StubFactorystubType - The type of the stub that needs to be created.public AbstractStub<?> createStub(Class<? extends AbstractStub<?>> stubType, Channel channel)
StubFactorycreateStub in interface StubFactorystubType - The type of the stub to create.channel - The channel used to create the stub.