Interface ProxyCtl


public interface ProxyCtl
Every proxy generated by HK2 will implement this interface, which can be used to have finer control on the behavior of the proxy

Compare this to the AOPProxyCtl interface, which is implemented by proxies used for the AOPAlliance method or constructor interceptor feature

  • Method Summary

    Modifier and Type
    Method
    Description
    This method causes the proxy instance to get created at the current time, without calling any of the methods on the underlying class itself.
  • Method Details

    • __make

      Object __make() throws MultiException
      This method causes the proxy instance to get created at the current time, without calling any of the methods on the underlying class itself. This is useful if you need to have the underlying object get created and go through its initialization cycle at a specific time, but do not wish to invoke any specific method on the object.
      Returns:
      The underlying instance of the service (not wrapped by the proxy)
      Throws:
      MultiException - If there was an error creating the proxy a MultiException will be thrown containing the underlying cause or causes