
org.wildfly.clustering.marshalling.protostream.EnumMarshallerAdapter Maven / Gradle / Ivy
/*
* Copyright The WildFly Authors
* SPDX-License-Identifier: Apache-2.0
*/
package org.wildfly.clustering.marshalling.protostream;
/**
* Adapts a {@link org.infinispan.protostream.EnumMarshaller} to a {@link ProtoStreamMarshaller}.
* @author Paul Ferraro
*/
public class EnumMarshallerAdapter> extends EnumMarshaller {
private final String typeName;
@SuppressWarnings("unchecked")
public EnumMarshallerAdapter(org.infinispan.protostream.EnumMarshaller marshaller) {
super((Class) marshaller.getJavaClass());
this.typeName = marshaller.getTypeName();
}
@Override
public String getTypeName() {
return this.typeName;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy