Class ProxyFactoryUtil

java.lang.Object
org.seppiko.commons.utils.ProxyFactoryUtil

public class ProxyFactoryUtil
extends java.lang.Object
Proxy factory
Author:
Leonard Woo
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static interface  ProxyFactoryUtil.ProxyHandler<T>
    interface proxy implement class interface
  • Constructor Summary

    Constructors
    Constructor Description
    ProxyFactoryUtil()  
  • Method Summary

    Modifier and Type Method Description
    static <T> T newInstance​(java.lang.Class<T> clazz, ProxyFactoryUtil.ProxyHandler<T> handler)
    call interface new instance from proxy

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ProxyFactoryUtil

      public ProxyFactoryUtil()
  • Method Details

    • newInstance

      public static <T> T newInstance​(java.lang.Class<T> clazz, ProxyFactoryUtil.ProxyHandler<T> handler)
      call interface new instance from proxy
      Type Parameters:
      T - interface class type
      Parameters:
      clazz - interface class
      handler - interface method invoke
      Returns:
      interface method invoke return object