|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME) @Target(value=METHOD) public static @interface ReadOnlyProxyContext.ReadOnly
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 enforce a read-only policy on the value retruned by the method. Use as follows:
@ReadOnly("org.acme") public SomeType someMethod() {...}
or as follows:
@ReadOnly({"org.acme", "com.foo.sample.MyClass"}) public SomeType someMethod() {...}
to allow write-access to the values returned by someMethod only from, respectively, code under
org.acme and code in org.acme or in com.foo.sample.MyClass.
By default, code which is part of the gCore distribution is allowed write-access:
@ReadOnly public void someMethod() {...}
| Optional Element Summary | |
|---|---|
String[] |
value
|
public abstract String[] value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||