Interface ProxyStrategy


  • public interface ProxyStrategy
    A strategy that determines how to create proxies.
    • Method Detail

      • createProxyFactory

        <T> java.util.function.Function<ProxyStrategy.InstanceSupplier<T>,​T> createProxyFactory​(java.lang.Class<T> cls)
                                                                                               throws java.lang.Exception
        Creates a proxy factory for the given Class and returns a function which can be used to create a new proxy.
        Type Parameters:
        T - the class type to proxy
        Parameters:
        cls - a Class to proxy, cannot be null
        Returns:
        a function which can be used to create a new proxy, never null
        Throws:
        java.lang.Exception - when unable to create a proxy factory, including when the functionality is disabled, the given class is unsuitable or an error occurred during proxy factory creation