org.mule.module.boot
Class MuleBootstrapUtils
java.lang.Object
org.mule.module.boot.MuleBootstrapUtils
public final class MuleBootstrapUtils
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MULE_LOCAL_JAR_FILENAME
public static final java.lang.String MULE_LOCAL_JAR_FILENAME
- See Also:
- Constant Field Values
isStandalone
public static boolean isStandalone()
- Whether Mule is running embedded or standalone.
- Returns:
- true if running standalone
getMuleHomeFile
public static java.io.File getMuleHomeFile()
- Returns:
- null if running embedded
getMuleLibDir
public static java.io.File getMuleLibDir()
- Returns:
- null if running embedded
getMuleLocalJarFile
public static java.io.File getMuleLocalJarFile()
addLocalJarFilesToClasspath
public static void addLocalJarFilesToClasspath(java.io.File muleHome,
java.io.File muleBase)
throws java.lang.Exception
- Throws:
java.lang.Exception
addLibrariesToClasspath
public static void addLibrariesToClasspath(java.util.List urls)
throws java.lang.NoSuchMethodException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
- Throws:
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
getResource
public static java.net.URL getResource(java.lang.String resourceName,
java.lang.Class callingClass)
- See Also:
ClassUtils.getResource(java.lang.String, java.lang.Class>)
renameFile
public static boolean renameFile(java.io.File srcFile,
java.io.File destFile)
throws java.io.IOException
- Throws:
java.io.IOException
- See Also:
FileUtils.renameFile(java.lang.String, java.lang.String)
renameFileHard
public static boolean renameFileHard(java.io.File srcFile,
java.io.File destFile)
throws java.io.IOException
- Throws:
java.io.IOException
- See Also:
FileUtils.renameFileHard(java.lang.String, java.lang.String)
copy
public static int copy(java.io.InputStream input,
java.io.OutputStream output)
throws java.io.IOException
- Throws:
java.io.IOException
- See Also:
IOUtils.copy(java.io.InputStream, java.io.OutputStream)
copyLarge
public static long copyLarge(java.io.InputStream input,
java.io.OutputStream output)
throws java.io.IOException
- Throws:
java.io.IOException
- See Also:
IOUtils.copyLarge(java.io.InputStream, java.io.OutputStream)
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.