The entity engine in OFBiz delegator

Source: Internet
Author: User

The most respected entity engine in ofbiz, what is the benefit of our downward study (I have not known), first step, the creation of the entity engine

In OFBiz, the entity engine is created by the Catalina-container (Tomcat container)

<container name= "Catalina-container" loaders= "main" class= "Org.ofbiz.catalina.container.CatalinaContainer" >        <!--static configuration for Tomcat---<property name= "delegator-name" value= "Default"/>//here is where the entity engine is configured <property name= "use-naming" value= "false"/> <property name= "Debug" value= "0"/> <proper Ty name= "Catalina-runtime-home" value= "Runtime/catalina"/>
Here the entity engine is created through the factory class This.delegator = Delegatorfactory.getdelegator (Containerconfig.getpropertyvalue (CC, "Delegator-na Me "," Default "));

The specific creation is created by the Genericdelegator class, where the side code has more than 2000 lines-

Gets the configuration information defined in Framework\entity\config\entityengine.xml This.delegatorinfo = Entityconfigutil.getdelegator ("Default ");
Model Load This.modelreader = Modelreader.getmodelreader (delegatorbasename); This.modelgroupreader = Modelgroupreader.getmodelgroupreader (Delegatorbasename);


This article from the "Sea Dragon" blog, declined reprint!

The entity engine in OFBiz delegator

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.