/** * Builds a URL with the given specification * @param spec the URL specification * @param trailingSlash flag to indicate a trailing slash on the spec * @return a URL */ public static URL buildURL(String spec, boolean trailingSlash) { return LocationHelper.buildURL(spec, trailingSlash); }
/** * Saves the state of the storage manager and releases any locks held. */ private void release() { if (locker == null) return; locker.release(); }
public Location createLocation(Location parentLocation, URL defaultLocation, boolean readonly) { BasicLocation result = new BasicLocation(null, defaultLocation, readonly, dataAreaPrefix, environmentInfo); result.setParent(parentLocation); return result; }
private void initializeInstanceFile() throws IOException { if (instanceFile != null || readOnly) return; this.instanceFile = File.createTempFile(".tmp", ".instance", managerRoot); //$NON-NLS-1$//$NON-NLS-2$ this.instanceFile.deleteOnExit(); instanceLocker = LocationHelper.createLocker(instanceFile, lockMode, false); instanceLocker.lock(); }
/** * @deprecated */ public boolean setURL(URL value, boolean lock) throws IllegalStateException { try { return set(value, lock); } catch (IOException e) { return false; } }
private void initializeInstanceFile() throws IOException { if (instanceFile != null || readOnly) return; this.instanceFile = File.createTempFile(".tmp", ".instance", managerRoot); //$NON-NLS-1$//$NON-NLS-2$ this.instanceFile.deleteOnExit(); instanceLocker = LocationHelper.createLocker(instanceFile, lockMode, false); instanceLocker.lock(); }
/** * Saves the state of the storage manager and releases any locks held. */ private void release() { if (locker == null) return; locker.release(); }
/** * Builds a URL with the given specification * @param spec the URL specification * @param trailingSlash flag to indicate a trailing slash on the spec * @return a URL */ public static URL buildURL(String spec, boolean trailingSlash) { return LocationHelper.buildURL(spec, trailingSlash); }
/** * @deprecated */ public boolean setURL(URL value, boolean lock) throws IllegalStateException { try { return set(value, lock); } catch (IOException e) { return false; } }
/** * Saves the state of the storage manager and releases any locks held. */ private void release() { if (locker == null) return; locker.release(); }
/** * Builds a URL with the given specification * @param spec the URL specification * @param trailingSlash flag to indicate a trailing slash on the spec * @return a URL */ public static URL buildURL(String spec, boolean trailingSlash) { return LocationHelper.buildURL(spec, trailingSlash); }
/** * Saves the state of the storage manager and releases any locks held. */ private void release() { if (locker == null) return; locker.release(); }