Documentation

Trace:

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
jvx:server:lco:accessible_notaccessible [2019/07/04 11:12]
admin
jvx:server:lco:accessible_notaccessible [2019/07/04 12:28]
admin
Line 6: Line 6:
 This environment control is built-in into JVx REST handling. This environment control is built-in into JVx REST handling.
  
 +**How to use the environment control?**
  
 +<file java>
 +@NotAccessible(environment = ILauncher.ENVIRONMENT_REST)
 +public String getCustomerName()
 +{
 +    return "John Doe";
 +}
 +</​file>​
 +
 +It's also possible to use:
 +
 +<file java>
 +@NotAccessible(environment = NotAccessible.ENVIRONMENT_ALL)
 +public String getCustomerName()
 +{
 +    return "John Doe";
 +}
 +</​file>​
 +
 +or
 +
 +<file java>
 +@NotAccessible(environment = ILauncher.ENVIRONMENT_DESKTOP + ","​ + ILauncher.ENVIRONMENT_REST)
 +public String getCustomerName()
 +{
 +    return "John Doe";
 +}
 +</​file>​
 +
 +or (repeatable Annotations,​ since Java8)
 +
 +<file java>
 +@NotAccessible(environment = ILauncher.ENVIRONMENT_DESKTOP}
 +@NotAccessible(environment = ILauncher.ENVIRONMENT_REST}
 +public String getCustomerName()
 +{
 +    return "John Doe";
 +}
 +</​file>​
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information