Class CachingProxyFactory

    • Constructor Detail

      • CachingProxyFactory

        public CachingProxyFactory​(IProxyFactory factory)
    • Method Detail

      • createClass

        public java.lang.Class<?> createClass​(java.lang.Class<?> clazz)
        Description copied from interface: IProxyFactory
        Create a proxy class for the given class.
        Specified by:
        createClass in interface IProxyFactory
        Parameters:
        clazz - class to proxy
        Returns:
        proxy class
      • createInstance

        public java.lang.Object createInstance​(java.lang.Class<?> proxyClass,
                                               IProxyFactory.Callback callback)
        Description copied from interface: IProxyFactory
        Create a proxy instance.
        Specified by:
        createInstance in interface IProxyFactory
        Parameters:
        proxyClass - class of proxy
        callback - callback for invocations
        Returns:
        proxy instance
      • destroy

        public void destroy​(java.lang.Object application)
      • getCallback

        public IProxyFactory.Callback getCallback​(java.lang.Object proxy)
        Description copied from interface: IProxyFactory
        Get the callback for the given proxy.
        Specified by:
        getCallback in interface IProxyFactory
        Parameters:
        proxy - proxy
        Returns:
        callback or null if not a proxy