This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
LOG.log(Level.FINE, "Installing bundle {0}", loc);
b = bc.installBundle(loc);
int startLevel = m.getStartLevel();
if (startLevel == -1) {
startLevel = defaultStartLevel();
}
if (startLevel > 0) {
setBundleStartLevel(bc, b, startLevel);
/** Finds out if a module has been assigned with a specific start level.
* Start level is only useful for OSGi bundles. Otherwise it is always zero.
*
* @return zero, if no specific level is assigned, positive integer if so
* @return -1, if no specific level is assigned, non-negative integer if so
* @since 2.43
*/
public final int getStartLevel() {
int getStartLevelImpl() {
return 0;
return -1;
/** String representation for debugging. */
import java.util.logging.Logger;
import org.openide.modules.SpecificationVersion;
import org.openide.util.Exceptions;
import org.openide.util.Lookup;
/** Special module for representing OSGi bundles
* @author Jaroslav Tulach
@Override
final int getStartLevelImpl() {
return startLevel == -1 ? Lookup.getDefault().lookup(NetigsoFramework.class).defaultStartLevel() : startLevel;
return startLevel;
final void setStartLevel(int startLevel) {