I assume you mean FrameworkWiring and not WireAdmin. here is a code snippit.
BundleContext context = getContext(); FrameworkWiring fwkWiring = context.getBundle(0).adapt (FrameworkWiring.class); fwkWiring.refreshBundles(getBundlesToRefresh()); You can also pass a FrameworkListener to FrameworkWiring.refreshBundles if you want to listen for when the operation completes. Tom |------------> | From: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |Raymond Auge <raymond.a...@liferay.com> | >--------------------------------------------------------------------------------------------------------------------------------------------------| |------------> | To: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |Equinox development mailing list <equinox-dev@eclipse.org>, | >--------------------------------------------------------------------------------------------------------------------------------------------------| |------------> | Date: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |09/11/2012 02:11 PM | >--------------------------------------------------------------------------------------------------------------------------------------------------| |------------> | Subject: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |[equinox-dev] example of wiredadmin replacing packageadmin to refresh bundles | >--------------------------------------------------------------------------------------------------------------------------------------------------| Anyone know of a working example of using WireAdmin in replacement of the packageAdmin for refresh? I've looked in the source of both equinox and felix and can't find any such applications. Sincerely, -- Raymond Augé | Senior Software Architect | Liferay, Inc. --- 8-9 October 2012 | Liferay North America Symposium | liferay.com/northamerica2012 16-17 October 2012 | Liferay Europe Symposium | liferay.com/europe2012 24-25 October 2012 | Liferay Spain Symposium | liferay.com/spain2012 _______________________________________________ equinox-dev mailing list equinox-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/equinox-dev
<<inline: graycol.gif>>
<<inline: ecblank.gif>>
_______________________________________________ equinox-dev mailing list equinox-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/equinox-dev