Autopsy  4.4.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
Installer.java
Go to the documentation of this file.
1 /*
2  * Central Repository
3  *
4  * Copyright 2015-2017 Basis Technology Corp.
5  * Contact: carrier <at> sleuthkit <dot> org
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 package org.sleuthkit.autopsy.centralrepository.eventlisteners;
20 
21 import java.beans.PropertyChangeListener;
22 import org.openide.modules.ModuleInstall;
23 import org.openide.util.actions.CallableSystemAction;
27 
31 public class Installer extends ModuleInstall {
32 
33  private static final Logger LOGGER = Logger.getLogger(Installer.class.getName());
34  private static final long serialVersionUID = 1L;
35  private final PropertyChangeListener pcl = new CaseEventListener();
37 
38  private static Installer instance;
39 
40  public synchronized static Installer getDefault() {
41  if (instance == null) {
42  instance = new Installer();
43  }
44  return instance;
45  }
46 
47  private Installer() {
48  super();
49  }
50 
51 
52  @Override
53  public void restored() {
55  ieListener.installListeners();
56 
57  CallableSystemAction.get(EamEditCaseInfoAction.class).setEnabled(true);
58 
59  // TODO: create a thread pool to process Runners.
60  }
61 
62  @Override
63  public boolean closing() {
64  //platform about to close
65 
66  return true;
67  }
68 
69  @Override
70  public void uninstalled() {
71  //module is being unloaded
72 
74  ieListener.uninstallListeners();
75 
76  // TODO: remove thread pool
77  }
78 }
static void removePropertyChangeListener(PropertyChangeListener listener)
Definition: Case.java:370
static void addPropertyChangeListener(PropertyChangeListener listener)
Definition: Case.java:358
synchronized static Logger getLogger(String name)
Definition: Logger.java:161

Copyright © 2012-2016 Basis Technology. Generated on: Fri Sep 29 2017
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.