JBI Component development (Part 8)
By Christophe Vaille on Oct 31, 2008
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 ...