Is there any guide on using openwrap at runtime?

12 views
Skip to first unread message

Konstantin

unread,
Sep 17, 2011, 11:30:46 AM9/17/11
to openwra...@googlegroups.com
I'd like to deploy application components as wraps to dedicated repository. 
Hosting application should be aware of openwrap and load new components  for the repository.
I've failed to find any docs on using openwrap from the code... Is this scenario supported?

Sebastien Lambla

unread,
Sep 17, 2011, 3:31:49 PM9/17/11
to openwra...@googlegroups.com

It’s not documented because the APIs are not very nice to deal with at the package manager level. Once the featureset for 2.0 is rounded up, I’ll add a simplified API for those scenaris.

 

In the meantime, you mostly need to create a ServiceRegistry, then get the IPackageManager from the ServiceLocator the first time around, the rest is more or less self-explanatory if a bit obtuse code.

Konstantin

unread,
Sep 17, 2011, 4:23:09 PM9/17/11
to openwra...@googlegroups.com
Ok Thanks. 
Actually I'm  already looking at source of openwrap. Hoped there are some easy way to get what i need :) 
Looking forward for the API  and thank you for this project.

BTW just curious... Why do you avoid using some IoC container? 

Sebastien Lambla

unread,
Sep 17, 2011, 9:46:44 PM9/17/11
to openwra...@googlegroups.com

I didn’t really avoid it, but want something that is very quick to load up for those CLI scenarios, so delayed the decision until the rest is done post beta 2 and I can run perf tests and see the performance impact of using a container of some sort. Note that taking dependencies is in itself a challenge and wanted to also reduce external dependencies to the absolute minimum, so there you go :)

Reply all
Reply to author
Forward
0 new messages