Time for action – exposing a method using the client interface

Carry out the following steps to expose a method using the client interface:

  1. Open the EmpDirectoryModuleImpl.java file and add the following method:
    public String getHelloWorld(){
        return "Hello World";
    }
  2. Go to the Java tab from the EmpDirectoryModule.xml file, and click on the pencil icon in the Client Interface section.
  3. The Edit Client Interface window will open. Move the getHelloWorld() method from the Available list to the Selected list as shown in the following screenshot:
    Time for action – exposing a method using the client interface
  4. Click on the OK button to create the interface method.

What just happened?

We now have the client interface defined ...

Get Oracle ADF 11gR2 Development Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.