Package io.helidon.grpc.core
Class JavaMarshaller.Supplier
- java.lang.Object
-
- io.helidon.grpc.core.JavaMarshaller.Supplier
-
- All Implemented Interfaces:
MarshallerSupplier
- Enclosing class:
- JavaMarshaller<T>
@Named("java") public static class JavaMarshaller.Supplier extends Object implements MarshallerSupplier
AMarshallerSupplier
implementation that supplies instances ofJavaMarshaller
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.helidon.grpc.core.MarshallerSupplier
MarshallerSupplier.DefaultMarshallerSupplier, MarshallerSupplier.ProtoMarshallerSupplier
-
-
Field Summary
-
Fields inherited from interface io.helidon.grpc.core.MarshallerSupplier
DEFAULT, PROTO
-
-
Constructor Summary
Constructors Constructor Description Supplier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> io.grpc.MethodDescriptor.Marshaller<T>
get(Class<T> clazz)
Obtain aMethodDescriptor.Marshaller
for a type.
-
-
-
Method Detail
-
get
public <T> io.grpc.MethodDescriptor.Marshaller<T> get(Class<T> clazz)
Description copied from interface:MarshallerSupplier
Obtain aMethodDescriptor.Marshaller
for a type.- Specified by:
get
in interfaceMarshallerSupplier
- Type Parameters:
T
- the type to be marshalled- Parameters:
clazz
- theClass
of the type to obtain theMethodDescriptor.Marshaller
for- Returns:
- a
MethodDescriptor.Marshaller
for a type
-
-