O'Reilly logo

Easy Web Development with WaveMaker by Edward Callahan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Dissecting the template class

The initial version of the class is generated from a template. It's pretty simple, but it is important to understand it too:

package com.wavemaker.example;

The package name comes directly from the package name we specified in the creation dialog.

In Chapter 2, Digging into the Architecture, we learned that a service class must extend JavaServiceSuperClass or use the @ExposeToClient annotation in order to be able to expose methods to the client. The template does both, and there are two imports: one for the super class and the other for the annotation:

import com.wavemaker.runtime.javaservice.JavaServiceSuperClass;
import com.wavemaker.runtime.service.annotations.ExposeToClient;

In between two comments, the first noting ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required