public BundleFile getBundleFile() { synchronized (genMonitor) { if (bundleFile == null) { if (getBundleId() == 0 && content == null) { bundleFile = new SystemBundleFile(); } else { bundleFile = getStorage().createBundleFile(content, this, isDirectory, true); } } return bundleFile; } }
void setStorageHooks(List<StorageHook<?, ?>> storageHooks, boolean install) { synchronized (this.genMonitor) { this.storageHooks = storageHooks; if (install) { this.hasPackageInfo = BundleInfo.hasPackageInfo(getBundleFile()); } } }
public Dictionary<String, String> getHeaders(String locale) { ManifestLocalization current = getManifestLocalization(); return current.getHeaders(locale); }
void delete(Generation generation) { try { getStorage().delete(getStorage().getFile(getBundleId() + "/" + generation.getGenerationId(), false)); //$NON-NLS-1$ } catch (IOException e) { storage.getLogServices().log(EquinoxContainer.NAME, FrameworkLogEntry.WARNING, "Error deleting generation.", e); //$NON-NLS-1$ } }
private ManifestLocalization getManifestLocalization() { synchronized (genMonitor) { if (headerLocalization == null) { headerLocalization = new ManifestLocalization(this, getHeaders(), getStorage().getConfiguration().getConfiguration(EquinoxConfiguration.PROP_ROOT_LOCALE, "en")); //$NON-NLS-1$ } return headerLocalization; } }
private static BundleFile createBundleFile(String nestedDir, Generation generation) { return generation.getBundleInfo().getStorage().createNestedBundleFile(nestedDir, generation.getBundleFile(), generation); }
@Override public ModuleClassLoader run() { return createClassLoaderPrivledged(cl, generation.getBundleInfo().getStorage().getConfiguration(), BundleLoader.this, generation, hooks); } });
private static BundleFile createBundleFile(File content, Generation generation) { if (!content.exists()) { return null; } return generation.getBundleInfo().getStorage().createBundleFile(content, generation, content.isDirectory(), false); }
public BundleFile getBundleFile() { synchronized (genMonitor) { if (bundleFile == null) { if (getBundleId() == 0 && content == null) { bundleFile = new SystemBundleFile(); } else { bundleFile = getStorage().createBundleFile(content, this, isDirectory, true); } } return bundleFile; } }
private ManifestLocalization getManifestLocalization() { synchronized (genMonitor) { if (headerLocalization == null) { headerLocalization = new ManifestLocalization(this, getHeaders(), getStorage().getConfiguration().getConfiguration(EquinoxConfiguration.PROP_ROOT_LOCALE, "en")); //$NON-NLS-1$ } return headerLocalization; } }
@Override public ModuleClassLoader run() { return createClassLoaderPrivledged(cl, generation.getBundleInfo().getStorage().getConfiguration(), BundleLoader.this, generation, hooks); } });
public Dictionary<String, String> getHeaders(String locale) { ManifestLocalization current = getManifestLocalization(); return current.getHeaders(locale); }
void setStorageHooks(List<StorageHook<?, ?>> storageHooks, boolean install) { synchronized (this.genMonitor) { this.storageHooks = storageHooks; if (install) { this.hasPackageInfo = BundleInfo.hasPackageInfo(getBundleFile()); } } }
public BundleFile getBundleFile() { synchronized (genMonitor) { if (bundleFile == null) { if (getBundleId() == 0 && content == null) { bundleFile = new SystemBundleFile(); } else { bundleFile = getStorage().createBundleFile(content, this, isDirectory, true); } } return bundleFile; } }
private ManifestLocalization getManifestLocalization() { synchronized (genMonitor) { if (headerLocalization == null) { headerLocalization = new ManifestLocalization(this, getHeaders(), getStorage().getConfiguration().getConfiguration(EquinoxConfiguration.PROP_ROOT_LOCALE, "en")); //$NON-NLS-1$ } return headerLocalization; } }
public Dictionary<String, String> getHeaders(String locale) { ManifestLocalization current = getManifestLocalization(); return current.getHeaders(locale); }
public BundleFile getBundleFile() { synchronized (genMonitor) { if (bundleFile == null) { if (getBundleId() == 0 && content == null) { bundleFile = new SystemBundleFile(); } else { bundleFile = getStorage().createBundleFile(content, this, isDirectory, true); } } return bundleFile; } }
private ManifestLocalization getManifestLocalization() { synchronized (genMonitor) { if (headerLocalization == null) { headerLocalization = new ManifestLocalization(this, getHeaders(), getStorage().getConfiguration().getConfiguration(EquinoxConfiguration.PROP_ROOT_LOCALE, "en")); //$NON-NLS-1$ } return headerLocalization; } }
public BundleFile getBundleFile() { synchronized (genMonitor) { if (bundleFile == null) { if (getBundleId() == 0 && content == null) { bundleFile = new SystemBundleFile(); } else { bundleFile = getStorage().createBundleFile(content, this, isDirectory, true); } } return bundleFile; } }
public BundleFile getBundleFile() { synchronized (genMonitor) { if (bundleFile == null) { if (getBundleId() == 0 && content == null) { bundleFile = new SystemBundleFile(); } else { bundleFile = getStorage().createBundleFile(content, this, isDirectory, true); } } return bundleFile; } }