MCPcopy Index your code
hub / github.com/zaproxy/zaproxy / getSingleton

Method getSingleton

zap/src/main/java/org/parosproxy/paros/view/View.java:657–671  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

655
656 // ZAP: FindBugs fix - make method synchronised
657 public static synchronized View getSingleton() {
658 if (view == null) {
659 if (daemon) {
660 Exception e = new Exception("Attempting to initialise View in daemon mode");
661 LOGGER.error(e.getMessage(), e);
662 return null;
663 }
664
665 LOGGER.info("Initialising View");
666 view = new View();
667 view.init();
668 }
669
670 return view;
671 }
672
673 public static boolean isInitialised() {
674 return view != null;

Callers 15

newSessionMethod · 0.95
openDbBasedSessionMethod · 0.95
propertiesMethod · 0.95
importContextMethod · 0.95
exportContextMethod · 0.95
MenuToolsControlMethod · 0.95
initSingletonWithViewMethod · 0.95
startServerMethod · 0.95
showErrorMessageMethod · 0.95
discardContextsMethod · 0.95
openMethod · 0.95
saveContextMethod · 0.95

Calls 4

infoMethod · 0.80
getMessageMethod · 0.65
initMethod · 0.65
errorMethod · 0.45

Tested by

no test coverage detected