Here are the examples of the java api javaLib.lib taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
19
Source : SaltLibFactory.java
with MIT License
from assaabloy-ppi
with MIT License
from assaabloy-ppi
/**
* Returns the lib requested or throws NoSuchLibException.
*/
public static SaltLib getLib(LibType type) {
synchronized (LIB_SYNC) {
switch(type) {
case BEST:
initBest();
return bestLib.lib;
case JAVA:
initJava();
return javaLib.lib;
case NATIVE:
initNative();
if (nativeLib.status == LibStatus.ERROR) {
throw new NoSuchLibException();
}
return nativeLib.lib;
default:
return getLib(LibType.BEST);
}
}
}
19
Source : SaltLibFactory.java
with MIT License
from assaabloy-ppi
with MIT License
from assaabloy-ppi
/**
* Returns a list of all operational SaltLib implementations.
*/
public static List<SaltLib> getAllOperationalLibs() {
ArrayList<SaltLib> list = new ArrayList<SaltLib>();
synchronized (LIB_SYNC) {
initAll();
if (javaLib.status == LibStatus.OK) {
list.add(javaLib.lib);
}
if (nativeLib.status == LibStatus.OK) {
list.add(nativeLib.lib);
}
}
return list;
}