Return-Path: X-Original-To: apmail-uima-user-archive@www.apache.org Delivered-To: apmail-uima-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1D41CD073 for ; Tue, 19 Feb 2013 22:31:48 +0000 (UTC) Received: (qmail 75774 invoked by uid 500); 19 Feb 2013 22:31:47 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 75728 invoked by uid 500); 19 Feb 2013 22:31:47 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 75707 invoked by uid 99); 19 Feb 2013 22:31:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Feb 2013 22:31:46 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.215.170] (HELO mail-ea0-f170.google.com) (209.85.215.170) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Feb 2013 22:31:37 +0000 Received: by mail-ea0-f170.google.com with SMTP id a11so3105934eaa.1 for ; Tue, 19 Feb 2013 14:31:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:x-originating-ip:date:message-id:subject :from:to:content-type:x-gm-message-state; bh=TekN1ro+Zecx0HU/2cD9DL3dNs/Ougup/Q0uTAgdAqM=; b=oPhlg01XbM6dGwn91PpcDJi8dQSq0tfuTe4jmR1GsNDzkzxosx5R2uspKxUyLN32vU nVX78hL0o1D6I/mYk4QCu7kdPsKRMVUiesuRLyrJZnDmtrlrnCmUoQzANjNNXkkCXoef pXzsewzJX70wCjneJ8yvnyv/N90LFN7b2MUcILLFaUgZy6jE/a4hFcsj61HK1Rb5ezTx AcvyCpIVfGDmDD+1BnyihG6WnzF3k8fERyU594IPRUseEGpo03nVU41jVF+SS5IE1Wex ST3WZiS2sItAFK42sSE/NXxmgftBYXob6OA/U0IJKSoh5I1gwc6ccPiXDnIIlvDodWWj 1+TQ== MIME-Version: 1.0 X-Received: by 10.14.216.2 with SMTP id f2mr61688120eep.44.1361313077109; Tue, 19 Feb 2013 14:31:17 -0800 (PST) Received: by 10.14.28.205 with HTTP; Tue, 19 Feb 2013 14:31:16 -0800 (PST) X-Originating-IP: [137.53.240.162] Date: Tue, 19 Feb 2013 14:31:16 -0800 Message-ID: Subject: Obtaining the AnalysisEngine object from a primitive analysis component From: Shahim Essaid To: user@uima.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQkD/E8NF6QYf2PNJQPRFQp3VRi4wfqwbV4UjDxaPPtmbp0Nf8BVdWMP6aL0QAkd1PkFSniQ X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I have a use case where I would like be able to get the AnalysisEngine object from an AnalysisComponent object at runtime in order to get to the: private ResourceCreationSpecifier mDescription; (or the aggregate's corresponding field.) in the PrimitiveAnalysisEngine_impl class. This will help my use case in two different ways. First, it will give me a single unique object for the current engine regardless how many component instances are created from my class and the object will be specific to the current engine in case my component class is instantiated in multiple engines. Second, I can get full access to the specifier that was used to create the engine. Is this possible? I tried to look through the various object references while debugging but couldn't figure out how to get to the analysis engine object. I was able to get hold of the ConfigurationManager object for the engine (which appears to be a single object per engine) but not the engine object itself. I know I can coordinate this from the application side but I would like to be able to do this by simply including the component in an engine without any other changes. Thanks, Shahim