org.mule.module.reboot
Class MuleContainerBootstrapUtils
java.lang.Object
org.mule.module.reboot.MuleContainerBootstrapUtils
public final class MuleContainerBootstrapUtils
- extends java.lang.Object
Method Summary |
static int |
copy(java.io.InputStream input,
java.io.OutputStream output)
|
static long |
copyLarge(java.io.InputStream input,
java.io.OutputStream output)
|
static java.io.File |
getMuleAppsDir()
|
static java.io.File |
getMuleHome()
|
static java.io.File |
getMuleLibDir()
|
static java.io.File |
getMuleLocalJarFile()
|
static java.net.URL |
getResource(java.lang.String resourceName,
java.lang.Class callingClass)
|
static boolean |
isStandalone()
Whether Mule is running embedded or standalone. |
static boolean |
renameFile(java.io.File srcFile,
java.io.File destFile)
|
static boolean |
renameFileHard(java.io.File srcFile,
java.io.File destFile)
|
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
getMuleHome
public static java.io.File getMuleHome()
- Returns:
- null if running embedded
getMuleAppsDir
public static java.io.File getMuleAppsDir()
- Returns:
- null if running embedded, otherwise the apps dir as a File ref
getMuleLibDir
public static java.io.File getMuleLibDir()
- Returns:
- null if running embedded
getMuleLocalJarFile
public static java.io.File getMuleLocalJarFile()
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.