Class ReflectionProxyFactory
java.lang.Object
xyz.jpenilla.reflectionremapper.proxy.ReflectionProxyFactory
@DefaultQualifier(org.checkerframework.checker.nullness.qual.NonNull.class)
public final class ReflectionProxyFactory
extends Object
Factory for reflection proxy instances.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ReflectionProxyFactorycreate(ReflectionRemapper reflectionRemapper, ClassLoader classLoader) Create a newReflectionProxyFactoryusing the specifiedReflectionRemapperfor remapping, and the specifiedClassLoaderto load reflection proxy implementation classes.<I> IreflectionProxy(Class<I> proxyInterface) Create a new instance of the given "reflection proxy interface".
-
Method Details
-
reflectionProxy
Create a new instance of the given "reflection proxy interface".- Type Parameters:
I- interface type- Parameters:
proxyInterface- reflection proxy interface class- Returns:
- reflection proxy instance
- Throws:
IllegalArgumentException- when the specified proxy interface is malformed or invalid for the current environment- See Also:
-
create
public static ReflectionProxyFactory create(ReflectionRemapper reflectionRemapper, ClassLoader classLoader) Create a newReflectionProxyFactoryusing the specifiedReflectionRemapperfor remapping, and the specifiedClassLoaderto load reflection proxy implementation classes.- Parameters:
reflectionRemapper- reflection remapperclassLoader- classloader- Returns:
- new
ReflectionProxyFactory
-