org.wildfly.clustering.marshalling.protostream.reflect.BinaryMethodMarshaller Maven / Gradle / Ivy
/*
* Copyright The WildFly Authors
* SPDX-License-Identifier: Apache-2.0
*/
package org.wildfly.clustering.marshalling.protostream.reflect;
import java.lang.reflect.Method;
import java.util.function.BiFunction;
/**
* Generic marshaller based on two non-public accessor methods.
* @param the target type of this marshaller
* @param the first component accessor method return type
* @param the second component accessor method return type
* @author Paul Ferraro
*/
public class BinaryMethodMarshaller extends BinaryMemberMarshaller {
public BinaryMethodMarshaller(Class extends T> type, Class member1Type, Class member2Type, BiFunction factory) {
super(type, Reflect::invoke, Reflect::findMethod, member1Type, member2Type, factory);
}
}