Package io.toro.martini.util
Class ApplicationUtils
- java.lang.Object
-
- io.toro.martini.util.ApplicationUtils
-
public final class ApplicationUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static StringDEFAULT_PACKAGE_DIRECTORY(package private) static StringKEY_HOME(package private) static StringKEY_PACKAGE_HOME
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidbindJNDIObject(String path, Object obj)static booleandebugEnabled()static StringextractRootDomain(String domain)static <T> TgetBean(String name)static StringgetHome()static StringgetHome(String suffix)static PathgetHome(String... segments)static FilegetHomeFile()static FilegetHomeFile(String suffix)static PathgetHomePath()static <T> TgetJNDIObject(String path)static PathgetPackageHomePath()static ThrowablegetRootCause(Throwable t)static booleanisOverridePropAutoReloadDisable(io.toro.properties.ToroProperties toroProperties)static booleanisSaas()static voidunbindJNDIObject(String path)
-
-
-
Field Detail
-
KEY_HOME
static final String KEY_HOME
- See Also:
- Constant Field Values
-
KEY_PACKAGE_HOME
static final String KEY_PACKAGE_HOME
- See Also:
- Constant Field Values
-
DEFAULT_PACKAGE_DIRECTORY
static final String DEFAULT_PACKAGE_DIRECTORY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getJNDIObject
public static <T> T getJNDIObject(String path) throws ToroException
- Throws:
ToroException
-
bindJNDIObject
public static void bindJNDIObject(String path, Object obj) throws NamingException
- Throws:
NamingException
-
unbindJNDIObject
public static void unbindJNDIObject(String path) throws ToroException
- Throws:
ToroException
-
getBean
public static <T> T getBean(String name) throws ToroException
- Throws:
ToroException
-
getHome
public static String getHome()
-
getHomeFile
public static File getHomeFile()
-
getHomePath
public static Path getHomePath()
-
isSaas
public static boolean isSaas()
-
debugEnabled
public static boolean debugEnabled()
-
getPackageHomePath
public static Path getPackageHomePath()
-
isOverridePropAutoReloadDisable
public static boolean isOverridePropAutoReloadDisable(io.toro.properties.ToroProperties toroProperties)
-
-