MCPcopy Create free account
hub / github.com/zaproxy/zaproxy / init

Method init

zap/src/main/java/org/parosproxy/paros/model/Model.java:202–218  ·  view source on GitHub ↗
(ControlOverrides overrides)

Source from the content-addressed store, hash-verified

200 }
201
202 public void init(ControlOverrides overrides) throws SAXException, IOException, Exception {
203 getOptionsParam().load(Constant.getInstance().FILE_CONFIG, overrides);
204
205 if (overrides.isExperimentalDb()) {
206 LOGGER.info("Using experimental database :/");
207 db = DbSQL.getSingleton().initDatabase();
208 } else {
209 db = new ParosDatabase();
210 }
211 db.setDatabaseOptions(getOptionsParam().getDatabaseParam());
212
213 createAndOpenUntitledDb();
214
215 HistoryReference.setTableHistory(getDb().getTableHistory());
216 HistoryReference.setTableTag(getDb().getTableTag());
217 HistoryReference.setTableAlert(getDb().getTableAlert());
218 }
219
220 public static Model getSingleton() {
221 if (model == null) {

Callers

nothing calls this directly

Calls 15

getOptionsParamMethod · 0.95
getInstanceMethod · 0.95
getSingletonMethod · 0.95
setTableHistoryMethod · 0.95
getDbMethod · 0.95
setTableTagMethod · 0.95
setTableAlertMethod · 0.95
infoMethod · 0.80
initDatabaseMethod · 0.80
getDatabaseParamMethod · 0.80
setDatabaseOptionsMethod · 0.65

Tested by

no test coverage detected