Managing code modules

You can implement the code for an action handler in a code module as opposed to a Java™ class file in the Java virtual machine (JVM) class path.

About this task

A code module is a special Document subclass that contains one or more Java components, either class files or JAR files. The following types of actions can be associated with an action handler that is contained in a code module:
  • Change preprocessor actions
  • Document classification actions
  • Document lifecycle actions
  • Event actions

Like any other document, a code module can have multiple content elements. The appropriate MIME type for a code module element depends on the file type; each element can be a class file or JAR file.

Table 1. MIME types
File type MIME type
Class file application/java-byte-code
JAR file application/java-archive