From b000dfa4ee99d8abe49dcee2362cff10b56c82bb Mon Sep 17 00:00:00 2001 From: adam-m Date: Tue, 11 Sep 2012 11:03:36 -0400 Subject: [PATCH] update doc to instruct how to initialize IngestServices --- .../sleuthkit/autopsy/ingest/IngestModuleAbstract.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Ingest/src/org/sleuthkit/autopsy/ingest/IngestModuleAbstract.java b/Ingest/src/org/sleuthkit/autopsy/ingest/IngestModuleAbstract.java index c98c445d91..3d028f02a5 100644 --- a/Ingest/src/org/sleuthkit/autopsy/ingest/IngestModuleAbstract.java +++ b/Ingest/src/org/sleuthkit/autopsy/ingest/IngestModuleAbstract.java @@ -41,9 +41,13 @@ public interface IngestModuleAbstract { }; /** - * Notification from manager that brand new ingest should be initiated. - * Module loads its configuration and performs initialization - * Invoked once per new worker thread, per ingest + * Notification from manager that brand new ingest should be initiated.. + * Module loads its configuration and performs initialization. + * Invoked once per new worker thread, per ingest. + * In this method initialize always IngestServices handle + * using IngestServices.getDefault() lazy-loading approach. + * NEVER initialize IngestServices handle in the member declaration, because it might result + * in multiple instances of the singleton -- different class loaders are used in different modules. * @param initContext context used to initialize some modules */ public void init(IngestModuleInit initContext);