Package de.mhus.lib.core.system
Class DefaultMApi
- java.lang.Object
-
- de.mhus.lib.core.system.DefaultMApi
-
- All Implemented Interfaces:
ApiInitialize,IApi,IApiInternal
public class DefaultMApi extends Object implements IApi, ApiInitialize, IApiInternal
-
-
Constructor Summary
Constructors Constructor Description DefaultMApi()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Basebase()MActivatorcreateActivator()voiddoInitialize(ClassLoader coreLoader)BaseControlgetBaseControl()CfgManagergetCfgManager()FilegetFile(MApi.SCOPE scope, String dir)Return a File inside the current application context.LogFactorygetLogFactory()Set<String>getLogTrace()StringgetSystemProperty(String name, String def)booleanisTrace(String name)LoglookupLog(Object owner)voidsetBaseDir(File file)voidsetLogFactory(LogFactory logFactory)voidsetMLogFactory(MLogFactory mlogFactory)voidupdateLog()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.mhus.lib.core.system.IApi
getCfgString
-
-
-
-
Method Detail
-
doInitialize
public void doInitialize(ClassLoader coreLoader)
- Specified by:
doInitializein interfaceApiInitialize
-
getBaseControl
public BaseControl getBaseControl()
- Specified by:
getBaseControlin interfaceIApi
-
createActivator
public MActivator createActivator()
- Specified by:
createActivatorin interfaceIApi
-
getLogFactory
public LogFactory getLogFactory()
- Specified by:
getLogFactoryin interfaceIApi
-
getCfgManager
public CfgManager getCfgManager()
- Specified by:
getCfgManagerin interfaceIApi
-
setLogFactory
public void setLogFactory(LogFactory logFactory)
- Specified by:
setLogFactoryin interfaceIApiInternal
-
getLogTrace
public Set<String> getLogTrace()
- Specified by:
getLogTracein interfaceIApiInternal
-
setBaseDir
public void setBaseDir(File file)
- Specified by:
setBaseDirin interfaceIApiInternal
-
getFile
public File getFile(MApi.SCOPE scope, String dir)
Description copied from interface:IApiReturn a File inside the current application context.
-
getSystemProperty
public String getSystemProperty(String name, String def)
- Specified by:
getSystemPropertyin interfaceIApi
-
setMLogFactory
public void setMLogFactory(MLogFactory mlogFactory)
- Specified by:
setMLogFactoryin interfaceIApiInternal
-
-