Package org.cyclos.impl
Class NetworkAccessProxy
- java.lang.Object
-
- org.cyclos.impl.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceNetworkAccessProxy.AllowedInProxyIndicates that a method can be called even if not a getter
-
Constructor Summary
Constructors Constructor Description NetworkAccessProxy()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Tproxy(T input)Returns a proxy capable for the given inputstatic <T> Tproxy(T input, IdentityHashMap<Object,javassist.util.proxy.Proxy> resolved)Creates a proxy for the given input, checking any entitystatic <T> Tunproxy(Object input)Returns the "proxied" instance only if the given input is a an instance ofProxyobtained through one of the "proxy(...)" methods defined in this class.
-
-
-
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 ofProxyobtained through one of the "proxy(...)" methods defined in this class. Otherwise it returns the input instance unchanged.- See Also:
proxy(Object),proxy(Object, IdentityHashMap)
-
-