org.wildfly.clustering.faces.mojarra.context.ContextSerializationContextInitializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wildfly-clustering-faces-mojarra Show documentation
Show all versions of wildfly-clustering-faces-mojarra Show documentation
Marshalling optimizations for Mojarra.
The newest version!
/*
* Copyright The WildFly Authors
* SPDX-License-Identifier: Apache-2.0
*/
package org.wildfly.clustering.faces.mojarra.context;
import org.kohsuke.MetaInfServices;
import org.wildfly.clustering.marshalling.protostream.AbstractSerializationContextInitializer;
import org.wildfly.clustering.marshalling.protostream.ProtoStreamMarshaller;
import org.wildfly.clustering.marshalling.protostream.SerializationContext;
import org.wildfly.clustering.marshalling.protostream.SerializationContextInitializer;
/**
* @author Paul Ferraro
*/
@MetaInfServices(SerializationContextInitializer.class)
public class ContextSerializationContextInitializer extends AbstractSerializationContextInitializer {
public ContextSerializationContextInitializer() {
super("com.sun.faces.context.proto");
}
@Override
public void registerMarshallers(SerializationContext context) {
context.registerMarshaller(ProtoStreamMarshaller.of(ContextImmutability::createMutex));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy