org.infinispan.protostream.BaseMarshaller Maven / Gradle / Ivy
package org.infinispan.protostream;
/**
* This is the base interface of the marshaller hierarchy, exposing common methods for identifying the Java and protobuf
* types handled by this marshaller instance. The marshaller implementation must be stateless and thread-safe.
*
* @author [email protected]
* @since 1.0
*/
public interface BaseMarshaller {
/**
* Returns the Java type handled by this marshaller. This must not change over multiple invocations.
*
* @return the Java type.
*/
Class extends T> getJavaClass();
/**
* Returns the full name of the message or enum type as declared in the protobuf file. This must not change over
* multiple invocations.
*
* @return the full name of the message or enum type declared in the protobuf file.
*/
String getTypeName();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy