com.github.dm.jrt.proxy.builder.AbstractProxyObjectBuilder Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.dm.jrt.proxy.builder;
import com.github.dm.jrt.builder.InvocationConfiguration;
import com.github.dm.jrt.builder.ProxyConfiguration;
import com.github.dm.jrt.util.WeakIdentityHashMap;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.lang.reflect.Type;
import java.util.HashMap;
/**
* Abstract implementation of a builder of async proxy objects.
*
* Created by davide-maestroni on 02/26/2015.
*
* @param the interface type.
*/
public abstract class AbstractProxyObjectBuilder implements ProxyObjectBuilder,
InvocationConfiguration.Configurable>,
ProxyConfiguration.Configurable> {
private static final WeakIdentityHashMap