Init#init
which should be done in any static block
of the files of this library. We ensure that this call is only executed once.
Modifier and Type | Field and Description |
---|---|
private static boolean | alreadyInitialized
Field alreadyInitialized |
public static final String | CONF_NS
The namespace for CONF file |
private static final Logger |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
private static void | dynamicInit()
Dynamically initialise the library by registering the default algorithms/implementations |
private static void | |
public static URL | getResource(String
The name of the resource to load resourceName, Class<?> The Class object of the calling object callingClass)Load a given resource. |
private static InputStream | getResourceAsStream(String
The name of the resource to load resourceName, Class<?> The Class object of the calling object callingClass)This is a convenience method to load a resource as a stream. |
private static List | getResources(String
The name of the resource to load resourceName, Class<?> The Class object of the calling object callingClass)Load a given resources. |
public static synchronized void | |
public static final synchronized boolean |
alreadyInitialized | back to summary |
---|---|
private static boolean alreadyInitialized Field alreadyInitialized |
CONF_NS | back to summary |
---|---|
public static final String CONF_NS The namespace for CONF file |
LOG | back to summary |
---|---|
private static final Logger LOG |
Init | back to summary |
---|---|
public Init() |
dynamicInit | back to summary |
---|---|
private static void dynamicInit() Dynamically initialise the library by registering the default algorithms/implementations
|
fileInit | back to summary |
---|---|
private static void fileInit(InputStream is) Initialise the library from a configuration file |
getResource | back to summary |
---|---|
public static URL getResource(String resourceName, Class<?> callingClass) Load a given resource. This method will try to load the resource using the following methods (in order):
|
getResourceAsStream | back to summary |
---|---|
private static InputStream getResourceAsStream(String resourceName, Class<?> callingClass) This is a convenience method to load a resource as a stream. The algorithm used to find the resource is given in getResource() |
getResources | back to summary |
---|---|
private static List Load a given resources. This method will try to load the resources using the following methods (in order):
|
init | back to summary |
---|---|
public static synchronized void init() Method init |
isInitialized | back to summary |
---|---|
public static final synchronized boolean isInitialized() Method isInitialized
|