简体   繁体   中英

Registering an Ecore model in a standalone Java application

An Ecore model can be used outside the plugin-environment by manually registering the file extension and the ResourceFactory with the following command, in this case for XML:

Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("xml", new XMLResourceFactoryImpl());   

My Ecore model only contains a Factory (extends EFactory ). Where can I get the necessary ResourceFactory?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM