Interface IProxyFactory<T,​I>

  • Type Parameters:
    T - The type of the value the proxy will delegate to.
    I - The interface to proxy
    All Known Subinterfaces:
    IProxyFactory_gen<T,​I>

    public interface IProxyFactory<T,​I>
    The Structural.factoryClass(), if provided, must implement this interface.
    • Method Detail

      • proxy

        I proxy​(T target,
                Class<I> iface)
        Create a proxy for the iface interface, delegating to target.
        Parameters:
        target - The target value for the proxy
        iface - The interface to proxy
        Returns:
        A proxy for the interface.