Class NetworkAccessProxy


  • public class NetworkAccessProxy
    extends Object
    Proxies entities to make sure no entity is accessed without permission over its network. Setters are forbidden, and each returned entity is proxied.
    • Constructor Detail

      • NetworkAccessProxy

        public NetworkAccessProxy()
    • Method Detail

      • proxy

        public static final <T> T proxy​(T input)
        Returns a proxy capable for the given input
      • proxy

        public static <T> T proxy​(T input,
                                  IdentityHashMap<Object,​javassist.util.proxy.Proxy> resolved)
        Creates a proxy for the given input, checking any entity
      • unproxy

        public static final <T> T unproxy​(Object input)
        Returns the "proxied" instance only if the given input is a an instance of Proxy obtained through one of the "proxy(...)" methods defined in this class. Otherwise it returns the input instance unchanged.
        See Also:
        proxy(Object), proxy(Object, IdentityHashMap)