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 String
DEFAULT_PACKAGE_DIRECTORY
(package private) static String
KEY_HOME
(package private) static String
KEY_PACKAGE_HOME
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
bindJNDIObject(String path, Object obj)
static boolean
debugEnabled()
static String
extractRootDomain(String domain)
static <T> T
getBean(String name)
static String
getHome()
static String
getHome(String suffix)
static Path
getHome(String... segments)
static File
getHomeFile()
static File
getHomeFile(String suffix)
static Path
getHomePath()
static <T> T
getJNDIObject(String path)
static Path
getPackageHomePath()
static Throwable
getRootCause(Throwable t)
static boolean
isOverridePropAutoReloadDisable(io.toro.properties.ToroProperties toroProperties)
static boolean
isSaas()
static void
unbindJNDIObject(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)
-
-