Search code examples
javaosgiosgi-bundle

What are the available options for org.osgi.framework.Bundle.stop(int)?


The javadoc doesn't say what are the available options for org.osgi.framework.Bundle.stop(int).

I'd like to know what are those options and what each option does.


Solution

  • As much as I see in the Javadoc, there are two options:

    • 0: Modifies the autostart flag of the bundle, too, so the Bundle might not be started after a framework restart
    • Bundle.STOP_TRANSIENT (1): Does not modify the autostart flag of the bundle