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

org.wildfly.clustering.el.expressly.ELSerializationContextInitializer Maven / Gradle / Ivy

Go to download

Marshalling optimizations for the Eclipse Expressly implementation of the Jakarta Expression Language API.

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

package org.wildfly.clustering.el.expressly;

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;

/**
 * @author Paul Ferraro
 */
@MetaInfServices(SerializationContextInitializer.class)
public class ELSerializationContextInitializer extends AbstractSerializationContextInitializer {

    public ELSerializationContextInitializer() {
        super("org.glassfish.expressly.proto");
    }

    @Override
    public void registerMarshallers(SerializationContext context) {
        context.registerMarshaller(new MethodExpressionImplMarshaller());
        context.registerMarshaller(new MethodExpressionLiteralMarshaller());
        context.registerMarshaller(new ValueExpressionImplMarshaller());
        context.registerMarshaller(new ValueExpressionLiteralMarshaller());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy