1 11 12 package org.eclipse.osgi.framework.internal.core; 13 14 import org.osgi.framework.Bundle; 15 import org.osgi.service.startlevel.StartLevel; 16 17 26 public class StartLevelImpl implements StartLevel { 27 28 protected StartLevelManager manager; 29 protected Bundle owner; 30 31 32 protected StartLevelImpl(Bundle owner, Framework framework) { 33 this.owner = owner; 34 this.manager = framework.startLevelManager; 35 } 36 37 44 public int getInitialBundleStartLevel() { 45 return manager.getInitialBundleStartLevel(); 46 } 47 48 74 public void setInitialBundleStartLevel(int startlevel) { 75 manager.setInitialBundleStartLevel(startlevel); 76 } 77 78 87 public int getStartLevel() { 88 return manager.getStartLevel(); 89 } 90 91 151 public void setStartLevel(int newSL) { 152 manager.setStartLevel(newSL, owner); 153 } 154 155 167 public boolean isBundlePersistentlyStarted(Bundle bundle) { 168 return manager.isBundlePersistentlyStarted(bundle); 169 } 170 171 172 public boolean isBundleActivationPolicyUsed(Bundle bundle) { 173 return manager.isBundleActivationPolicyUsed(bundle); 174 } 175 176 183 public int getBundleStartLevel(Bundle bundle) { 184 return manager.getBundleStartLevel(bundle); 185 } 186 187 215 public void setBundleStartLevel(Bundle bundle, int newSL) { 216 manager.setBundleStartLevel(bundle, newSL); 217 } 218 219 public boolean isSettingStartLevel() { 220 return manager.isSettingStartLevel(); 221 } 222 } 223 | Popular Tags |