Personnalisation avancée > Info*Engine Java Adapter Development Kit > Developing an Adapter Using the JADK > Writing Custom Adapter Webjects
  
Writing Custom Adapter Webjects
1. Copy the IeQueryObjects.java file to your development directory and use it as the basis for your webject development:
If you need to write a webject that handles a Query-Data request, rename this webject to IeQueryData.java. This can also be done when you need to add more webjects into your directory.
If you want your adapter to handle a Query-Objects request, implement IeQueryObjects.java.
If you need to create an image, implement IeCreateImage.java.
The number of characters in the filename is up to you, but the webject name needs to be preceded with “Ie.”
2. Remove the original sample code from the processWebject() method and add your code to the constructor, the init() and processWebject() methods.
3. Change the build.xml file to ensure that class files corresponding to the newly added adapter webjects are put into an output directory of your choice and that a target JAR file with the required name is created.
4. Build the webjects you have developed by entering ant in the local development path.
5. Use the Generic Adapter property editor form to add the properties for the custom adapter. For more information, see the section Info*Engine User’s Guide.
6. Change the property myWebjectPath to the output directory location of the webject class files.
7. Run the custom adapter.