Packaging

A model processor class and all the properties files that configure it must be correctly packaged in a JAR file before you can deploy it. To package it you must:

  1. Copy the files into a folder structure that matches:

    • The package name of your model processor class

    • The Content Engine's package naming conventions

  2. Pack it in a JAR file

Model Processor Package Structure

For the model processor example shown earlier, you would need to create a JAR file with the following structure:

com
  +-escenic
  |  +-servlet
  |   +-default-config
  |     +-com
  |       +-escenic
  |         +-framework
  |           +-controller
  |           |  +-HelloWorldWidgetDefaultViewModelProcessor.properties
  |           +-descriptor
  |              +-DescriptorRegistry.properties
  |              +-HelloWorldWidgetDescriptor.properties
  +-mycompany
    +-view
      +-processor
        +-HelloWorldWidgetDefaultViewModelProcessor.class