Class NoProxyStrategy

  • All Implemented Interfaces:
    ProxyStrategy

    public class NoProxyStrategy
    extends java.lang.Object
    implements ProxyStrategy
    An implementation of ProxyStrategy that will always throw an exception when attempting to create a proxy, effectively disabling the functionality.
    • Constructor Detail

      • NoProxyStrategy

        public NoProxyStrategy()
    • Method Detail

      • createProxyFactory

        public <T> java.util.function.Function<ProxyStrategy.InstanceSupplier<T>,​T> createProxyFactory​(java.lang.Class<T> cls)
        Description copied from interface: ProxyStrategy
        Creates a proxy factory for the given Class and returns a function which can be used to create a new proxy.
        Specified by:
        createProxyFactory in interface ProxyStrategy
        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