IDEMPIERE-4842 Easier model registration (#887)

- Temporary disable AnnotationBasedModelFactory until getSubclasses()
doesn't work for subclass from different package is resolve.
This commit is contained in:
hengsin 2021-09-18 15:36:50 +08:00 committed by GitHub
parent 602e450a93
commit 2f8adb48c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" activate="activate" immediate="true" name="org.adempiere.base.AnnotationBasedModelFactory">
<property name="service.ranking" type="Integer" value="1"/>
<property name="service.ranking" type="Integer" value="-1"/>
<service>
<provide interface="org.adempiere.base.IModelFactory"/>
</service>

View File

@ -9,5 +9,6 @@ bin.includes = plugin.xml,\
lib/cron4j.jar,\
lib/classindex.jar
src.includes = schema/
source.. = src/
source.. = src/,\
.apt_generated/
output.. = target/classes/

View File

@ -27,7 +27,7 @@ import org.osgi.service.component.annotations.Component;
* discovery using SPI is preferred over reflection-based methods.
* @author Saulo Gil
*/
@Component(immediate = true, service = IModelFactory.class, property = {"service.ranking:Integer=1"})
@Component(immediate = true, service = IModelFactory.class, property = {"service.ranking:Integer=-1"})
public class AnnotationBasedModelFactory extends AbstractModelFactory implements IModelFactory
{