org.jboss.services.deployment
Class LibraryManager

java.lang.Object
  extended byorg.jboss.services.deployment.LibraryManager

public final class LibraryManager
extends java.lang.Object

Simple helper singleton to manage library operations


Method Summary
static LibraryManager (src) getInstance()
          Gets the singleton
 boolean uploadLibrary(java.net.URL src, java.lang.String filename)
          Upload a new library to server lib dir.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static LibraryManager (src)  getInstance()
Gets the singleton


uploadLibrary

public boolean uploadLibrary(java.net.URL src,
                             java.lang.String filename)
Upload a new library to server lib dir. A different filename may be specified, when writing the library. If the target filename exists, upload is not performed.

Parameters:
src - the source url to copy
filename - the filename to use when copying (optional)
Returns:
true if upload was succesful, false otherwise