java - Removing EMF dependencies -


i trying clean java project emf dependencies. set option "suppress emf types" in .genmodel file in eclipse true , regenerated code. converted emf types java types such elist list. there section in project uses emf classes follows:

        vulnerabilitydb db = nvdfactory.einstance.createvulnerabilitydb();         xmiresource resource = new xmiresourceimpl(uri.createfileuri("target/test.vdb"));         resource.getcontents().add(db);         resource.save(collections.emptymap()); 

i think need reimplement using java libraries not familiar emf , didn't exact objective of section. how can fix part?

that minimum bottleneck/requirement have encountered. suggest create facade hide remaining emf apis. example:

interface vdbservice {     void createdb(vulnerabilitydb db, string uri);     vulnerabilitydb loaddb(string uri); } 

Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -