org.gcube.common.core.utils.proxies
Annotation Type ForwardProxyContext.ReturnProxy


@Retention(value=RUNTIME)
@Target(value=METHOD)
public static @interface ForwardProxyContext.ReturnProxy

The primary annotation of the proxy associated with the context. If detected upon a method of the proxied object, it will induce the proxy to generate another forwarding proxy for the values returned by the method. Use as follows:

@ReturnProxy public SomeType someMethod() {...}

to return a forwarding proxy in place of the value returned by someMethod.



Copyright © 2012. All Rights Reserved.