org.wildfly.clustering.web.undertow.elytron.SecurityCacheSerializationContextInitializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wildfly-clustering-web-undertow Show documentation
Show all versions of wildfly-clustering-web-undertow Show documentation
This module adapts an implementation of wildfly-clustering-web-spi to the Undertow servlet container.
The 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.security.cache} package.
* @author Paul Ferraro
*/
@MetaInfServices(SerializationContextInitializer.class)
public class SecurityCacheSerializationContextInitializer extends AbstractSerializationContextInitializer {
public SecurityCacheSerializationContextInitializer() {
super("org.wildfly.security.cache.proto");
}
@Override
public void registerMarshallers(SerializationContext context) {
context.registerMarshaller(new CachedIdentityMarshaller());
}
}