String getUpdateLocation0(Module module) { ModuleRevision current = module.getCurrentRevision(); Generation generation = (Generation) current.getRevisionInfo(); String updateLocation = generation.getHeaders().get(Constants.BUNDLE_UPDATELOCATION); if (updateLocation == null) { updateLocation = module.getLocation(); } if (updateLocation.startsWith(INITIAL_LOCATION)) { updateLocation = updateLocation.substring(INITIAL_LOCATION.length()); } return updateLocation; }
String getUpdateLocation0(Module module) { ModuleRevision current = module.getCurrentRevision(); Generation generation = (Generation) current.getRevisionInfo(); String updateLocation = generation.getHeaders().get(Constants.BUNDLE_UPDATELOCATION); if (updateLocation == null) { updateLocation = module.getLocation(); } if (updateLocation.startsWith(INITIAL_LOCATION)) { updateLocation = updateLocation.substring(INITIAL_LOCATION.length()); } return updateLocation; }
private void setStorageHooks(Generation generation) throws BundleException { if (generation.getBundleInfo().getBundleId() == 0) { return; // ignore system bundle } List<StorageHookFactory<?, ?, ?>> factories = new ArrayList<StorageHookFactory<?, ?, ?>>(getConfiguration().getHookRegistry().getStorageHookFactories()); List<StorageHook<?, ?>> hooks = new ArrayList<StorageHook<?, ?>>(factories.size()); for (Iterator<StorageHookFactory<?, ?, ?>> iFactories = factories.iterator(); iFactories.hasNext();) { @SuppressWarnings("unchecked") StorageHookFactory<Object, Object, StorageHook<Object, Object>> next = (StorageHookFactory<Object, Object, StorageHook<Object, Object>>) iFactories.next(); StorageHook<Object, Object> hook = next.createStorageHookAndValidateFactoryClass(generation); hooks.add(hook); } generation.setStorageHooks(Collections.unmodifiableList(hooks), true); for (StorageHook<?, ?> hook : hooks) { hook.initialize(generation.getHeaders()); } }
private void setStorageHooks(Generation generation) throws BundleException { if (generation.getBundleInfo().getBundleId() == 0) { return; // ignore system bundle } List<StorageHookFactory<?, ?, ?>> factories = new ArrayList<StorageHookFactory<?, ?, ?>>(getConfiguration().getHookRegistry().getStorageHookFactories()); List<StorageHook<?, ?>> hooks = new ArrayList<StorageHook<?, ?>>(factories.size()); for (Iterator<StorageHookFactory<?, ?, ?>> iFactories = factories.iterator(); iFactories.hasNext();) { @SuppressWarnings("unchecked") StorageHookFactory<Object, Object, StorageHook<Object, Object>> next = (StorageHookFactory<Object, Object, StorageHook<Object, Object>>) iFactories.next(); StorageHook<Object, Object> hook = next.createStorageHookAndValidateFactoryClass(generation); hooks.add(hook); } generation.setStorageHooks(Collections.unmodifiableList(hooks), true); for (StorageHook<?, ?> hook : hooks) { hook.initialize(generation.getHeaders()); } }
private Dictionary<String, String> privGetHeaders(String locale) { Generation current = (Generation) module.getCurrentRevision().getRevisionInfo(); return current.getHeaders(locale); }
private Dictionary<String, String> privGetHeaders(String locale) { Generation current = (Generation) module.getCurrentRevision().getRevisionInfo(); return current.getHeaders(locale); }
private Dictionary<String, String> privGetHeaders(String locale) { Generation current = (Generation) module.getCurrentRevision().getRevisionInfo(); return current.getHeaders(locale); }
private Dictionary<String, String> privGetHeaders(String locale) { Generation current = (Generation) module.getCurrentRevision().getRevisionInfo(); return current.getHeaders(locale); }
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 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 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 Dictionary<String, String> privGetHeaders(String locale) { Generation current = (Generation) module.getCurrentRevision().getRevisionInfo(); return current.getHeaders(locale); }
String getUpdateLocation0(Module module) { ModuleRevision current = module.getCurrentRevision(); Generation generation = (Generation) current.getRevisionInfo(); String updateLocation = generation.getHeaders().get(Constants.BUNDLE_UPDATELOCATION); return updateLocation == null ? module.getLocation() : updateLocation; }
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; } }
String getUpdateLocation0(Module module) { ModuleRevision current = module.getCurrentRevision(); Generation generation = (Generation) current.getRevisionInfo(); String updateLocation = generation.getHeaders().get(Constants.BUNDLE_UPDATELOCATION); return updateLocation == null ? module.getLocation() : updateLocation; }
String getUpdateLocation0(Module module) { ModuleRevision current = module.getCurrentRevision(); Generation generation = (Generation) current.getRevisionInfo(); String updateLocation = generation.getHeaders().get(Constants.BUNDLE_UPDATELOCATION); return updateLocation == null ? module.getLocation() : updateLocation; }
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 Dictionary<String, String> getHeaders(String locale) { equinoxContainer.checkAdminPermission(this, AdminPermission.METADATA); Generation current = (Generation) module.getCurrentRevision().getRevisionInfo(); return current.getHeaders(locale); }
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; } }
String getUpdateLocation0(Module module) { ModuleRevision current = module.getCurrentRevision(); Generation generation = (Generation) current.getRevisionInfo(); String updateLocation = generation.getHeaders().get(Constants.BUNDLE_UPDATELOCATION); return updateLocation == null ? module.getLocation() : updateLocation; }