Equinox Integration 2/Tutorial Extension Point

From ADempiere
Revision as of 04:22, 31 January 2010 by Viola (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
This Wiki is read-only for reference purposes to avoid broken links.

If you want to extract some functionality out of the core and provide a new extension point so that plug-ins can provide an extension, read on.

Example: Let plugins implement how invoices are posted to FACCT.

Replace core code by call to service

  • Navigate to Doc_Invoice.createFaccts()
  • Insert the line IInvoicePoster invoicePoster = Service.locate().getInvoicePoster()
  • Replace code in core by

Locate and define extension point

Write the plugin