1 /*
2 *
3 * Autopsy Forensic Browser
4 *
5 * Copyright 2012-2015 Basis Technology Corp.
6 *
7 * Copyright 2012 42six Solutions.
8 * Contact: aebadirad <at> 42six <dot> com
9 * Project Contact/Architect: carrier <at> sleuthkit <dot> org
10 *
11 * Licensed under the Apache License, Version 2.0 (the "License");
12 * you may not use this file except in compliance with the License.
13 * You may obtain a copy of the License at
14 *
15 * http://www.apache.org/licenses/LICENSE-2.0
16 *
17 * Unless required by applicable law or agreed to in writing, software
18 * distributed under the License is distributed on an "AS IS" BASIS,
19 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 * See the License for the specific language governing permissions and
21 * limitations under the License.
22 */
23 package org.sleuthkit.autopsy.casemodule.services;
24
25 import java.io.Closeable;
26 import java.io.IOException;
27 import java.util.ArrayList;
28 import java.util.List;
29 import org.openide.util.Lookup;
32
37
38 private final List<Closeable>
services =
new ArrayList<>();
42
45 services.add(fileManager);
46
48 services.add(tagsManager);
49
51 services.add(keywordSearchService);
52 }
53
56 }
57
60 }
61
64 }
65
66 @Override
67 public void close() throws IOException {
68 for (Closeable service : services) {
69 service.close();
70 }
71 }
72
73 }
FileManager getFileManager()
final TagsManager tagsManager
Services(SleuthkitCase tskCase)
final FileManager fileManager
KeywordSearchService getKeywordSearchService()
final List< Closeable > services
TagsManager getTagsManager()
final KeywordSearchService keywordSearchService