Home  /  Application Development: Core Topics  /  Class Definition Reference  /  Class Keywords  /  ServerOnly

Class Definition Reference
[Back]  [Next] 
InterSystems: The power behind what matters   

Specifies whether this class is projected to Java clients.
To override the default way that the class would be projected to Java clients, use the following syntax:
Class Sample.NewClass1  [ ServerOnly = serveronlyvalue ] { //class members }
Where serveronlyvalue is one of the following:
If this keyword is 1, the class will not be projected to a Java client. If this keyword is 0, the class will be projected.
Effect on Subclasses
This keyword is not inherited.
If this keyword is omitted, this class is projected if it is not a stub (but is not projected if it is a stub).
See Also