Package de.mhus.lib.core
Class MApi
- java.lang.Object
-
- de.mhus.lib.core.MApi
-
public class MApi extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMApi.SCOPE
-
Field Summary
Fields Modifier and Type Field Description static PrintStreamerrstatic PrintStreamoutprotected static Booleantrace
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddirtyLog(Object... string)static voiddirtyLogError(Object... string)static voiddirtyLogInfo(Object... string)static voiddoStartTrailLog(String source)static voiddoStopTrailLog()static IApiget()static IConfiggetCfg(Object owner)Returns the config or an empty config as default.static IConfiggetCfg(Object owner, IConfig def)static UpdaterCfggetCfgUpdater()static FilegetFile(MApi.SCOPE scope, String path)static booleanisDirtyTrace()static booleanisTrace(String name)static <T> Tlookup(Class<T> class1)static <T,D extends T>
Tlookup(Class<T> class1, Class<D> def)static voidsetDirtyTrace(boolean dt)static voidupdateLoggers()static <T> TwaitFor(Class<? extends T> ifc, long timeout)
-
-
-
Field Detail
-
trace
protected static Boolean trace
-
out
public static PrintStream out
-
err
public static PrintStream err
-
-
Method Detail
-
get
public static IApi get()
-
isDirtyTrace
public static boolean isDirtyTrace()
-
setDirtyTrace
public static void setDirtyTrace(boolean dt)
-
isTrace
public static boolean isTrace(String name)
-
doStartTrailLog
public static void doStartTrailLog(String source)
-
doStopTrailLog
public static void doStopTrailLog()
-
updateLoggers
public static void updateLoggers()
-
getCfg
public static IConfig getCfg(Object owner)
Returns the config or an empty config as default.- Parameters:
owner-- Returns:
- the config
-
getCfgUpdater
public static UpdaterCfg getCfgUpdater()
-
getFile
public static File getFile(MApi.SCOPE scope, String path)
-
lookup
public static <T> T lookup(Class<T> class1)
-
waitFor
public static <T> T waitFor(Class<? extends T> ifc, long timeout)
-
dirtyLog
public static void dirtyLog(Object... string)
-
dirtyLogInfo
public static void dirtyLogInfo(Object... string)
-
dirtyLogError
public static void dirtyLogError(Object... string)
-
-