com.h3c.util.proxy

## Class SwingThreadMonitorProxy<I>

- java.lang.Object
- - com.h3c.util.proxy.SwingThreadMonitorProxy<I>

- Type Parameters:
    `I` - the type of interface to handle invocations for.
  All Implemented Interfaces:
    DynamicProxy.DynamicProxyInvocationHandler<I>

      public class SwingThreadMonitorProxy<I>
      extends Object
      implements DynamicProxy.DynamicProxyInvocationHandler<I>

  Swing Thread Monitor Proxy. This Proxy must be the last created (In case several are created) so the caller is properly written.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SwingThreadMonitorProxy()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Object` | `invoke(I delegate, Method method, Object[] args)` Method to handle invocations.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SwingThreadMonitorProxy

          public SwingThreadMonitorProxy()

  - ### Method Detail

    - #### invoke

          public Object invoke(I delegate,
                      Method method,
                      Object[] args)
                        throws Throwable

      Description copied from interface: `DynamicProxy.DynamicProxyInvocationHandler`
      Method to handle invocations.
      Specified by:
        `invoke` in interface `DynamicProxy.DynamicProxyInvocationHandler<I>`
      Parameters:
        `delegate` - delegate.
        `method` - the method been invoked.
        `args` - the method arguments.
      Returns:
        the invocation returned value.
      Throws:
        `Throwable` - if an error occurs.

Copyright © 2014. All Rights Reserved.