About manifest, plugin.xml, and factory classes usage

24 views
Skip to first unread message

Gustavo Palomo

unread,
Oct 20, 2025, 12:49:05 PM (3 days ago) Oct 20
to iDempiere
Hi everyone,
I have a question regarding how the manifest.mf and plugin.xml files work together with factory classes in iDempiere.
As I understand it, the plugin.xml should reference the factory classes, and those factories are responsible for deciding which callout, process, or model validator to use at runtime.
However, in my current implementation, the plugin.xml directly references specific callout and process classes (e.g., each class is explicitly declared as an extension)and it works but I would like to switch to using factories instead, but I’m not entirely sure about the correct structure or best practice to achieve this.
Could someone please clarify how this should be correctly configured?
Any small example or explanation of how to properly register factories through plugin.xml would be very helpful.
Thanks in advance.

Jesús Castillo

unread,
Oct 20, 2025, 5:02:37 PM (2 days ago) Oct 20
to idem...@googlegroups.com
Hi Gustavo, 

Check this resources  https://wiki.idempiere.org/en/Category:Plug-In_Development

Here there is a example of a process factory https://wiki.idempiere.org/en/Developing_Plug-Ins_-_Process#Using_a_Process_Factory

But, since Idempiere 9 I use Annotations, only put this in the activator class

public class Activator extends Incremental2PackActivator {


@Override

public void start(BundleContext context) throws Exception {

Core.getMappedModelFactory().scan(context, "com.mypackages.model");

Core.getMappedProcessFactory().scan(context, "com.mypakages.process");

Core.getMappedColumnCalloutFactory().scan(context, "com.mypakages.callout");

super.start(context);

}

}

 
And this annotation in process

/**

*

*

* @autor Jesús Castillo (Jcass016@gmail.com)

*/

@org.adempiere.base.annotation.Process

public class DistribuirMercanciaProcess extends SvrProcess {


For me it is a clean way.

Check the documentation for annotations

Atte: Jesus Castillo.


--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/idempiere/ff340a13-7e63-45f6-9131-3108f37bf4ben%40googlegroups.com.

Heng Sin Low

unread,
Oct 20, 2025, 7:10:14 PM (2 days ago) Oct 20
to idem...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages