Child pages
  • OpenEAI Generic RequestCommand and Provider

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In implementation of ESB services, there is a recurring pattern of RequestCommand boilerplate and Provider.  This project uses java generic facility to help implement such a pattern so that code duplication is reduced.


Design Artifacts

RequestCommandRequestCommandsProvidersOperations

GenericCrudRequestCommand<M extends ActionableEnterpriseObject, Q extends XmlEnterpriseObject, P extends CrudProvider<M, Q>>

CrudProvider,AbstractCrudProvider,ExampleCrudProviderQuery, Create, Update, Delete

 GenericGenerateRequestCommand<M GenericGenerateRequestCommand<M extends ActionableEnterpriseObject, R extends XmlEnterpriseObject, P extends GenerateProvider<M, R>>

GenerateProvider,AbstractGenerateProvider,ExampleGenerateProviderGenerate (only)

GenericCompleteRequestCommand<M extends ActionableEnterpriseObject, Q extends XmlEnterpriseObject, R extends XmlEnterpriseObject, P extends CompleteProvider<M, Q, R>>

CompleteProvider,CompleteGenerateProvider,CompleteGenerateProviderQuery, Create, Update, Delete, Generate

...