Class AsyncStubFactory
java.lang.Object
net.devh.boot.grpc.client.stubfactory.StandardJavaGrpcStubFactory
net.devh.boot.grpc.client.stubfactory.AsyncStubFactory
- All Implemented Interfaces:
StubFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Derives the name of the factory method from the given stub type.boolean
isApplicable
(Class<? extends AbstractStub<?>> stubType) Used to resolve a factory that matches the particular stub type.Methods inherited from class net.devh.boot.grpc.client.stubfactory.StandardJavaGrpcStubFactory
createStub
-
Constructor Details
-
AsyncStubFactory
public AsyncStubFactory()
-
-
Method Details
-
isApplicable
Description copied from interface:StubFactory
Used to resolve a factory that matches the particular stub type.- Parameters:
stubType
- The type of the stub that needs to be created.- Returns:
- True if this particular factory is capable of creating instances of this stub type. False otherwise.
-
getFactoryMethodName
Description copied from class:StandardJavaGrpcStubFactory
Derives the name of the factory method from the given stub type.- Specified by:
getFactoryMethodName
in classStandardJavaGrpcStubFactory
- Returns:
- The name of the factory method.
-