Say I have the following structure:
myapp.ear: base.jar: /* module with basic classes */ beans.xml myapp/base/PersonForm.class stock.jar: /* specialized module dealing with inventory */ beans.xml myapp/stock/SupplierForm.class finance.jar: /* specialized module dealing with financials */ beans.xml myapp/finance/CreditorForm.class
Both stock
and finance
modules depend on base
but are completely independent of each other. SupplierForm
and CreditorForm
are specialized versions of the PersonForm
UI controller where module-specific data is placed. For instance, CreditorForm
add a Deposit Account
field to the Person Form
.
I thought of implementing this scenario using @Decorators. SupplierForm
and CreditorForm
decorates the UI building logic. The questions are:
A. On such scenario, where should I enable the decorators?
B. What would be the decorator calling order if they're not enabled on the same beans.xml?