@Retention(value=RUNTIME) @Target(value=METHOD) public static @interface AccessControlProxyContext.Restricted
@Restricted("org.acme") public void someMethod() {...}
or as follows:
@Restricted({"org.acme", "com.foo.sample.MyClass"}) public void someMethod() {...}
to allow access to 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 trusted:
@Restricted public void someMethod() {...}
public abstract String[] value
Copyright © 2015. All Rights Reserved.