All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.wildfly.clustering.web.undertow.elytron.ElytronUndertowSerializationContextInitializer Maven / Gradle / Ivy

Go to download

This module adapts an implementation of wildfly-clustering-web-spi to the Undertow servlet container.

There is a newer version: 34.0.0.Final
Show newest version
/*
 * Copyright The WildFly Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package org.wildfly.clustering.web.undertow.elytron;

import org.kohsuke.MetaInfServices;
import org.wildfly.clustering.marshalling.protostream.AbstractSerializationContextInitializer;
import org.wildfly.clustering.marshalling.protostream.SerializationContext;
import org.wildfly.clustering.marshalling.protostream.SerializationContextInitializer;

/**
 * Marshaller registration for the {@link org.wildfly.elytron.web.undertow.server.servlet} package.
 * @author Paul Ferraro
 */
@MetaInfServices(SerializationContextInitializer.class)
public class ElytronUndertowSerializationContextInitializer extends AbstractSerializationContextInitializer {

    public ElytronUndertowSerializationContextInitializer() {
        super("org.wildfly.elytron.web.undertow.server.servlet.proto");
    }

    @Override
    public void registerMarshallers(SerializationContext context) {
        context.registerMarshaller(new IdentityContainerMarshaller());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy