org.wildfly.clustering.faces.component.ComponentSerializationContextInitializer Maven / Gradle / Ivy
/*
* Copyright The WildFly Authors
* SPDX-License-Identifier: Apache-2.0
*/
package org.wildfly.clustering.faces.component;
import java.io.Serializable;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.security.PrivilegedAction;
import java.util.Map;
import java.util.function.Supplier;
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;
import org.wildfly.clustering.marshalling.protostream.reflect.FieldMarshaller;
import org.wildfly.security.manager.WildFlySecurityManager;
import jakarta.faces.component.StateHolder;
import jakarta.faces.component.UIComponent;
import jakarta.faces.context.FacesContext;
@MetaInfServices(SerializationContextInitializer.class)
public class ComponentSerializationContextInitializer extends AbstractSerializationContextInitializer {
public ComponentSerializationContextInitializer() {
super("jakarta.faces.component.proto");
}
@Override
public void registerMarshallers(SerializationContext context) {
// Package protected enums!!!
registerMarshaller(context, UIComponent.class, "PropertyKeys");
registerMarshaller(context, UIComponent.class, "PropertyKeysPrivate");
// Package protected class with inaccessible fields!!!
Map.Entry, Supplier
© 2015 - 2025 Weber Informatics LLC | Privacy Policy