/** * Attaches this file object to its file resource. This method is called before any of the doBlah() or onBlah() * methods. Sub-classes can use this method to perform lazy initialisation. * <p/> * This implementation does nothing. */ protected void doAttach() throws Exception { super.doAttach(); }
protected void doAttach() throws Exception { super.doAttach(); statSelf(); }
/** * Attaches to the file. * * @throws FileSystemException if an error occurs. */ private void attach() throws FileSystemException { synchronized (fileSystem) { if (attached) { return; } try { // Attach and determine the file type doAttach(); attached = true; // now the type could already be injected by doAttach (e.g from parent to child) /* * VFS-210: determine the type when really asked fore if (type == null) { setFileType(doGetType()); } if * (type == null) { setFileType(FileType.IMAGINARY); } */ } catch (final Exception exc) { throw new FileSystemException("vfs.provider/get-type.error", exc, fileName); } // fs.fileAttached(this); } }
/** * Attaches to the file. * * @throws FileSystemException if an error occurs. */ private void attach() throws FileSystemException { synchronized (fs) { if (attached) { return; } try { // Attach and determine the file type doAttach(); attached = true; // now the type could already be injected by doAttach (e.g from parent to child) /* * VFS-210: determine the type when really asked fore if (type == null) { setFileType(doGetType()); } if * (type == null) { setFileType(FileType.IMAGINARY); } */ } catch (final Exception exc) { throw new FileSystemException("vfs.provider/get-type.error", exc, fileName); } // fs.fileAttached(this); } }
doAttach(); attached = true;
/** * Attaches to the file. * * @throws FileSystemException if an error occurs. */ private void attach() throws FileSystemException { synchronized (monitorLock) { if (isAttached()) { return; } try { // Attach and determine the file type doAttach(); setAttached(true); // now the type could already be injected by doAttach (e.g from parent to child) /* * VFS-210: determine the type when really asked fore if (type == null) { setFileType(doGetType()); } if * (type == null) { setFileType(FileType.IMAGINARY); } */ } catch (final Exception exc) { throw new FileSystemException("vfs.provider/get-type.error", exc, fileName); } // fs.fileAttached(this); } }