INNER CODE UNIT · Java
main
ron190/jsql-injection · view/src/main/java/com/jsql/MainApp.java:54
public static void main(String[] args) {
MediatorHelper.register(MainApp.INJECTION_MODEL);
MainApp.INJECTION_MODEL.getMediatorUtils().exceptionUtil().setUncaughtExceptionHandler();
MainApp.INJECTION_MODEL.getMediatorUtils().proxyUtil().initProxy();
MainApp.INJECTION_MODEL.getMediatorUtils().authenticationUtil().setKerberosCifs();
try {
var view = new JFrameView(MainApp.INJECTION_MODEL);
MediatorHelper.register(view);
MainApp.INJECTION_MODEL.subscribe(view.getSubscriberView());
} catch (HeadlessException e) {
LOGGER.log(LogLevelUtil.CONSOLE_JAVA, "HeadlessException, command line execution not supported: {}", e.getMessage(), e);
} catch (AWTError e) {
// Fix #22668: Assistive Technology not found
LOGGER.log(
LogLevelUtil.CONSOLE_JAVA,
"Java Access Bridge missing or corrupt, check your access bridge definition in JDK_HOME/jre/lib/accessibility.properties: {}",