[Minor] Added convenience method to access PrivilegeHandler
This commit is contained in:
parent
1e8648bc2a
commit
afda69d236
|
@ -5,6 +5,7 @@ import java.text.MessageFormat;
|
||||||
|
|
||||||
import li.strolch.runtime.component.ComponentContainer;
|
import li.strolch.runtime.component.ComponentContainer;
|
||||||
import li.strolch.runtime.configuration.RuntimeConfiguration;
|
import li.strolch.runtime.configuration.RuntimeConfiguration;
|
||||||
|
import li.strolch.runtime.privilege.StrolchPrivilegeHandler;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
@ -25,6 +26,10 @@ public class RuntimeMock {
|
||||||
return container;
|
return container;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static StrolchPrivilegeHandler getPrivilegeHandler() {
|
||||||
|
return container.getComponent(StrolchPrivilegeHandler.class);
|
||||||
|
}
|
||||||
|
|
||||||
public static void mockRuntime(File rootPathF, File configSrc) {
|
public static void mockRuntime(File rootPathF, File configSrc) {
|
||||||
|
|
||||||
if (!rootPathF.getParentFile().getName().equals(TARGET)) {
|
if (!rootPathF.getParentFile().getName().equals(TARGET)) {
|
||||||
|
|
Loading…
Reference in New Issue