JarGeneratorService

public interface JarGeneratorService

This interface provides methods to create a bundle jar with all entities defined in MDS module.

Fields

BLUEPRINT_TEMPLATE

String BLUEPRINT_TEMPLATE

BLUEPRINT_XML

String BLUEPRINT_XML

BUNDLE_IMPORTS

String BUNDLE_IMPORTS

DATANUCLEUS_PROPERTIES

String DATANUCLEUS_PROPERTIES

ENTITY_LIST_FILE

String ENTITY_LIST_FILE

HISTORY_LIST_FILE

String HISTORY_LIST_FILE

LISTENER_LIST_FILE

String LISTENER_LIST_FILE

MDS_CHANNEL_TEMPLATE

String MDS_CHANNEL_TEMPLATE

MDS_COMMON_CONTEXT

String MDS_COMMON_CONTEXT

MDS_ENTITIES_CONTEXT

String MDS_ENTITIES_CONTEXT

MDS_ENTITIES_CONTEXT_TEMPLATE

String MDS_ENTITIES_CONTEXT_TEMPLATE

MOTECH_MDS_PROPERTIES

String MOTECH_MDS_PROPERTIES

PACKAGE_JDO

String PACKAGE_JDO

TASK_CHANNEL_JSON

String TASK_CHANNEL_JSON

VALIDATION_PROVIDER

String VALIDATION_PROVIDER

Methods

generate

File generate()

Generates a jar file that contains entity class definitions, repositories, interfaces, implementations of these interfaces. The jar should also contains class related with historical data and trash.

Throws:
  • IOException – if an I/O error occurs while creating the jar file.
Returns:

file that points to the entities bundle jar.

regenerateMdsDataBundle

void regenerateMdsDataBundle()

Constructs entities, builds and starts the entities bundle jar

See also: .generate()

regenerateMdsDataBundle

void regenerateMdsDataBundle(boolean startBundle)

Constructs entities, builds the entities bundle jar. The generated bundle will start only if the startBundle will be set to true.

Parameters:
  • startBundletrue if the generated bundle should start; otherwise false.

See also: .generate()

regenerateMdsDataBundleAfterDdeEnhancement

void regenerateMdsDataBundleAfterDdeEnhancement(String... moduleNames)

Constructs entities, builds and starts the entities bundle jar. This method should be used after DDE enhancement. It will build all DDE classes and refresh modules from which the DDE being enhanced comes from.

Parameters:
  • moduleNames – modules names of the entities from which the enhanced DDE comes from

See also: .generate()