| [Teneo] Adding EPackages Dynamically to DataStore [message #938743] |
Wed, 10 October 2012 01:39  |
Eclipse User |
|
|
|
Hi Everyone,
Is there anyway I can dynamically include EPackages in to datastore during runtime ?
My Code:
//Initializing with a simple EPackage
EPackage[] epacks = new EPackage[]{EcoreFactory.eINSTANCE.createEPackage()};
hbds.setEPackages(epacks);
hbds.initialize();
.....
Later updating Registry with actual EPackages.
EPackage.Registry.INSTANCE.put( epack.getNsURI(), epack );
Will Teneo automatically pick from global EPackage.Registry the packages at runtime?
Teneo gives me below error:
java.lang.IllegalArgumentException: No annotated model element present for: type EClass has its epackage been registered with Teneo?
Thanks and Regards,
Appasamy
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.26554 seconds