public class SwissKnife extends Object
Constructor and Description |
---|
SwissKnife() |
Modifier and Type | Method and Description |
---|---|
static boolean |
doesClassExist(String nameWithPackage,
Object instanceToGetClassloaderFrom)
Used to check whether a class exists on the classpath.
|
static String |
getRealClassNameLowerCamelCase(Object object)
Returns the lower class name.
|
static org.apache.commons.configuration.PropertiesConfiguration |
loadConfigurationInUtf8(String fileOrUrlOrClasspathUrl)
This is important: We load stuff as UTF-8.
|
public static org.apache.commons.configuration.PropertiesConfiguration loadConfigurationInUtf8(String fileOrUrlOrClasspathUrl)
fileOrUrlOrClasspathUrl
- Location of the file. Can be on file
system, or on the classpath. Will both work.public static String getRealClassNameLowerCamelCase(Object object)
object
- Object for which to return the lowerCamelCaseNamepublic static boolean doesClassExist(String nameWithPackage, Object instanceToGetClassloaderFrom)
nameWithPackage
- for instance com.example.conf.GloablFiltersinstanceToGetClassloaderFrom
- usually "this" if you call this method.Copyright © 2019 ninjaframework. All rights reserved.