Class NativeMirrorEngine

java.lang.Object
org.midheaven.lang.reflection.NativeMirrorEngine
All Implemented Interfaces:
ProxyEngine

public class NativeMirrorEngine extends Object implements ProxyEngine
Represents Native Mirror Engine.
  • Constructor Details

    • NativeMirrorEngine

      public NativeMirrorEngine()
  • Method Details

    • canProxy

      public <T> boolean canProxy(Class<T> type)
      Checks whether can Proxy.
      Specified by:
      canProxy in interface ProxyEngine
      Parameters:
      type - the type value
      Returns:
      the result of canProxy
    • proxy

      public <T> T proxy(Class<T> type, Class<?>[] otherTypes, InvocationHandler handler)
      Performs proxy.
      Specified by:
      proxy in interface ProxyEngine
      Parameters:
      type - the type value
      otherTypes - the otherTypes value
      handler - the handler value
      Returns:
      the result of proxy