JBI Component development (Part 8)

The specific JNI Mapper

1. The specific JNI Mapper


To test and call the JNIWrapper library previously developed, it's time to create the specific Mapper for the JNIWrapper library, the JNIMapper.

To create the JNIMapper, use NetBeans and create a new Java project: JNIMapper.
At the end of this topic the project will produce a JNIMapper.jar file.

The JNIMapper class will extend the Mapper class previously created in the LibMapper.jar
The only thing to do, is to implement the abstract method that will call by the super class:

- libHandler(String methodName, Node params);

The code will call the right methods in the JNIWraper using the methodName received as a parameter in libHandler.

The illustration below shows the JNIMapper implementation:





See Part 9 ...

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Christophe Vaille

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today