org.jboss.services.deployment
Class LibraryManager

java.lang.Object
  extended by org.jboss.services.deployment.LibraryManager

public final class LibraryManager
extends Object

Simple helper singleton to manage library operations

Version:
$Revision: 57210 $
Author:
Dimitris Andreadis

Method Summary
static LibraryManager getInstance()
          Gets the singleton
 boolean uploadLibrary(URL src, 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 getInstance()
Gets the singleton


uploadLibrary

public boolean uploadLibrary(URL src,
                             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


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.