@Override public Bundle getBundle() { return module.getBundle(); }
protected boolean checkAuthorization(Module module) { SecurityManager sm = System.getSecurityManager(); if (sm == null) return true; Bundle bundle = module == null ? null : module.getBundle(); if (bundle == null) return false; sm.checkPermission(new AdminPermission(bundle, AdminPermission.RESOURCE)); return true; }
protected boolean checkAuthorization(Module module) { SecurityManager sm = System.getSecurityManager(); if (sm == null) return true; Bundle bundle = module == null ? null : module.getBundle(); if (bundle == null) return false; sm.checkPermission(new AdminPermission(bundle, AdminPermission.RESOURCE)); return true; }
private String toString(Module m) { Bundle b = m.getBundle(); return b != null ? b.toString() : m.toString(); } }
private String toString(Module m) { Bundle b = m.getBundle(); return b != null ? b.toString() : m.toString(); } }
protected boolean checkAuthorization(Module module) { SecurityManager sm = System.getSecurityManager(); if (sm == null) return true; Bundle bundle = module == null ? null : module.getBundle(); if (bundle == null) return false; sm.checkPermission(new AdminPermission(bundle, AdminPermission.RESOURCE)); return true; }
protected boolean checkAuthorization(Module module) { SecurityManager sm = System.getSecurityManager(); if (sm == null) return true; Bundle bundle = module == null ? null : module.getBundle(); if (bundle == null) return false; sm.checkPermission(new AdminPermission(bundle, AdminPermission.RESOURCE)); return true; }
private String toString(Module m) { Bundle b = m.getBundle(); return b != null ? b.toString() : m.toString(); } }
private String toString(Module m) { Bundle b = m.getBundle(); return b != null ? b.toString() : m.toString(); } }
Bundle getBundlePriv(Class<?> clazz) { ClassLoader cl = clazz.getClassLoader(); if (cl instanceof BundleReference) { return ((BundleReference) cl).getBundle(); } if (cl == getClass().getClassLoader()) { return container.getModule(0).getBundle(); } return null; }
Bundle getBundlePriv(Class<?> clazz) { ClassLoader cl = clazz.getClassLoader(); if (cl instanceof BundleReference) { return ((BundleReference) cl).getBundle(); } if (cl == getClass().getClassLoader()) { return container.getModule(0).getBundle(); } return null; }
Bundle getBundlePriv(Class<?> clazz) { ClassLoader cl = clazz.getClassLoader(); if (cl instanceof BundleReference) { return ((BundleReference) cl).getBundle(); } if (cl == getClass().getClassLoader()) { return container.getModule(0).getBundle(); } return null; }
Bundle getBundlePriv(Class<?> clazz) { ClassLoader cl = clazz.getClassLoader(); if (cl instanceof BundleReference) { return ((BundleReference) cl).getBundle(); } if (cl == getClass().getClassLoader()) { return container.getModule(0).getBundle(); } return null; }
Bundle getBundlePriv(Class<?> clazz) { ClassLoader cl = clazz.getClassLoader(); if (cl instanceof BundleReference) { return ((BundleReference) cl).getBundle(); } if (cl == getClass().getClassLoader()) { return container.getModule(0).getBundle(); } return null; }
@Override public void publishContainerEvent(ContainerEvent type, Module module, Throwable error, FrameworkListener... listeners) { EquinoxEventPublisher publisher = container.getEventPublisher(); if (publisher != null) { publisher.publishFrameworkEvent(getType(type), module.getBundle(), error, listeners); } }
@Override public void publishContainerEvent(ContainerEvent type, Module module, Throwable error, FrameworkListener... listeners) { EquinoxEventPublisher publisher = container.getEventPublisher(); if (publisher != null) { publisher.publishFrameworkEvent(getType(type), module.getBundle(), error, listeners); } }
public void close() { if (policy != null) { Module systemModule = container.getStorage().getModuleContainer().getModule(0); BundleContext context = systemModule.getBundle().getBundleContext(); if (context != null) { policy.close(context); } } ModuleClassLoader current = classloader; if (current != null) { current.close(); } }