org.mule.modules.boot
Class DefaultMuleClassPathConfig

java.lang.Object
  extended byorg.mule.modules.boot.DefaultMuleClassPathConfig

public class DefaultMuleClassPathConfig
extends Object

Constructs a default set of JAR Urls located under Mule home folder.


Field Summary
protected static String FOLDER_MULE
           
protected static String FOLDER_OPT
           
protected static String FOLDER_USER
           
 
Constructor Summary
DefaultMuleClassPathConfig(File muleHome, File muleBase)
          Constructs a new DefaultMuleClassPathConfig.
 
Method Summary
 void addURL(URL url)
          Add a URL to Mule's classpath.
 void addURLs(List urls)
          Setter for property 'urls'.
 List getURLs()
          Getter for property 'urls'.
protected  File[] listJars(File muleDir, String muleSubfolder)
          Find and if necessary filter the jars for classpath.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FOLDER_MULE

protected static final String FOLDER_MULE
See Also:
Constant Field Values

FOLDER_OPT

protected static final String FOLDER_OPT
See Also:
Constant Field Values

FOLDER_USER

protected static final String FOLDER_USER
See Also:
Constant Field Values
Constructor Detail

DefaultMuleClassPathConfig

public DefaultMuleClassPathConfig(File muleHome,
                                  File muleBase)
Constructs a new DefaultMuleClassPathConfig.

Method Detail

getURLs

public List getURLs()
Getter for property 'urls'.

Returns:
A copy of 'urls'. Items are java.net.URL

addURLs

public void addURLs(List urls)
Setter for property 'urls'.

Parameters:
urls - Value to set for property 'urls'.

addURL

public void addURL(URL url)
Add a URL to Mule's classpath.

Parameters:
url - folder (should end with a slash) or jar path

listJars

protected File[] listJars(File muleDir,
                          String muleSubfolder)
Find and if necessary filter the jars for classpath.

Parameters:
muleSubfolder - folder under the Mule directory to list
Returns:
a list


Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.