core-jgi/org.adempiere.base/OSGI-INF
Saulo José Gil 2b4a2be5a2
IDEMPIERE-4842 Easier model registration (#893)
* IDEMPIERE-4842 Easier model registration

- Change from https://github.com/atteo/classindex to
https://github.com/classgraph/classgraph, remove annotation processor
config.

- Change service.ranking of DefaultModelFactory to -1 and
service.ranking of AnnotationBasedModelFactory to 0. This give
AnnotationBasedModelFactory higher priority over DefaultModelFactory and
allow plugins to have higher priority over AnnotationBasedModelFactory
with server.ranking of 1 (the common practise before the introduction of
AnnotationBasedModelFactory).

- Added resultset constructor to MTree. This is to allow the use of
MTree with model factory.

- Remove classindex annotation from org.adempiere.base.Model and X_*
model classes.

- Added unit test for table to model class mapping

- AnnotationBasedModelFactory: Change from using annotation processor to
runtime annotation scanning using the classgraph library. The default
setting scans all the X_* model class and travels the inheritance
hierarchy to discover the M* model class. Plugin needs to create a
subclass of AnnotationBasedModelFactory and register it as an OSGi
component to scan the plugin's annotated model classes (the plugin's
custom AnnotationBasedModelFactory component should have service.ranking
> 0).

* IDEMPIERE-4842 Easier model registration

minor refinement

* Minor changes

Co-authored-by: hengsin <hengsin@gmail.com>
2021-09-22 22:42:51 +08:00
..
metatype
MFAEMailMechanism.xml IDEMPIERE-4782 Multi-factor authentication (FHCA-2034) (#705) 2021-06-08 19:49:46 +08:00
MFATOTPMechanism.xml IDEMPIERE-4782 Multi-factor authentication (FHCA-2034) (#705) 2021-06-08 19:49:46 +08:00
addressvalidationeventhandler.xml
archivedb.xml
archivefile.xml
attachmentdb.xml
attachmentfile.xml
broadcastutil.xml
defaultaddressvalidationfactory.xml
defaultcalloutfactory.xml
defaultcolumncalloutfactory.xml
defaultdocfactory.xml
defaultlookupfactory.xml
defaultmodelfactory.xml IDEMPIERE-4842 Easier model registration (#893) 2021-09-22 22:42:51 +08:00
defaultmodelvalidatorfactory.xml
defaultpaymentprocessorfactory.xml
defaultprocessfactory.xml
defaultproductpricingfactory.xml
defaultshipmentprocessorfactory.xml
defaulttaxproviderfactory.xml
dslocator.xml
eventmanager.xml
groovyfactory.xml
imagedb.xml
imagefile.xml
keystore.xml
org.adempiere.base.AnnotationBasedModelFactory.xml IDEMPIERE-4842 Easier model registration (#893) 2021-09-22 22:42:51 +08:00
org.adempiere.base.MappedColumnCalloutFactory.xml IDEMPIERE-4690 Add column callout factory base class backed by Map an… (#567) 2021-02-06 14:53:59 +01:00
org.adempiere.base.MappedDocumentFactory.xml IDEMPIERE-4695 Add document factory base class backed by Map and Lambda functional object (#572) 2021-02-09 19:17:15 +01:00
org.idempiere.model.MappedModelFactory.xml IDEMPIERE-4675 Add model factory base class backed by Map and Lambda … (#555) 2021-02-01 15:29:13 +01:00
org.idempiere.process.MappedProcessFactory.xml IDEMPIERE-4689 Add process factory base class backed by Map and Lambda functional object (#566) 2021-02-06 14:37:04 +01:00
requesteventhandler.xml
requestpropertyservice.xml