How to know whether a bundle is wired by other bundles

View: New views
3 Messages — Rating Filter:   Alert me  

How to know whether a bundle is wired by other bundles

by Ivan Xu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
   Is there a way that I could know whether a bundle is wired by other
bundles ?
   I have a case that, I need to install a bundle for a temp use, after
that, I wish to stop and unload it. But not sure whether some wired
connections are built for the temp bundle. So I wish that I could check it
before I stop and unload it.
  Thanks for any comment !

--
Ivan

Re: How to know whether a bundle is wired by other bundles

by Guo Du :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, Nov 1, 2009 at 2:36 PM, Ivan <xhhsld@...> wrote:
>   I have a case that, I need to install a bundle for a temp use, after
> that, I wish to stop and unload it. But not sure whether some wired
For temp used bundle, you may use Private-Package header to avoid
export to global wide. Then you are safe to uninstall.

This won't work if you have multiple temp bundles with dependency relationship.

-Guo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: How to know whether a bundle is wired by other bundles

by Richard S. Hall :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If you want to interactively check if anyone is using it, then you can
use the "inspect package requirement" or "inspect p r" to check which
packages a bundle imports...unfortunately, it would be better if
"inspect" allowed you to see who depends on a given bundle...maybe you
can file an RFE in JIRA.

If you need to do this programmatically, then you need to use the
PackageAdmin service.

-> richard

On 11/1/09 9:36, Ivan wrote:

> Hi,
>     Is there a way that I could know whether a bundle is wired by other
> bundles ?
>     I have a case that, I need to install a bundle for a temp use, after
> that, I wish to stop and unload it. But not sure whether some wired
> connections are built for the temp bundle. So I wish that I could check it
> before I stop and unload it.
>    Thanks for any comment !
>
>    

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...