Return-Path: X-Original-To: apmail-cocoon-users-archive@www.apache.org Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 01C8577E9 for ; Mon, 15 Aug 2011 06:38:11 +0000 (UTC) Received: (qmail 73164 invoked by uid 500); 15 Aug 2011 06:38:06 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 72594 invoked by uid 500); 15 Aug 2011 06:37:53 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 72587 invoked by uid 99); 15 Aug 2011 06:37:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Aug 2011 06:37:47 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [130.231.240.1] (HELO oulu.fi) (130.231.240.1) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Aug 2011 06:37:38 +0000 Received: from cc.oulu.fi (sun3.oulu.fi [130.231.240.13]) by oulu.fi (8.13.8/8.13.8) with ESMTP id p7F6bIvD012915 for ; Mon, 15 Aug 2011 09:37:18 +0300 Received: from claudius.oulu.fi (claudius.oulu.fi [130.231.106.107]) by cc.oulu.fi (8.13.7/8.13.7) with ESMTP id p7F6bHWs024572 for ; Mon, 15 Aug 2011 09:37:18 +0300 (EEST) Message-ID: <4E48BE9D.5060407@oulu.fi> Date: Mon, 15 Aug 2011 09:37:17 +0300 From: Andre Juffer User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110621 Mandriva/3.1.11-0.1mdv2010.2 (2010.2) Thunderbird/3.1.11 MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: C2.2: Accessing static method on Java object with Flowscript References: <4E451423.2000805@cc.oulu.fi> <4E452BFD.3040902@cc.oulu.fi> <4E47B9D9.8000201@proventis.net> <4E4811EC.6020408@cc.oulu.fi> <4E48AD3D.6030103@proventis.net> In-Reply-To: <4E48AD3D.6030103@proventis.net> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Ok, thanks. It is a bit counterintuitive. One would not expect that to be possible, but it works. On 15/08/11 08:23, Thomas Markus wrote: > Hi, > > i missed the private > > i tried direct access and it works fine: > > var U = Packages.com.foo bar.UseFul; > U.someMethod('text1', 'stringb'); > > Packages.com.foo.bar.UseFul.someMethod('text1', 'stringb'); > > > public class UseFul { > > private UseFul() {} > > public static void someMethod(String a, String b) { > System.out.println("a=" + a + " b=" + b); > } > > } > > > I'm using C2.2 > > regards > Thomas > > > Am 14.08.2011 20:20, schrieb Andre Juffer: >> On 08/14/2011 03:04 PM, Thomas Markus wrote: >>> Hi, >>> >>> or create an instance without spring: >>> >>> var bean = new com.foo.bar.Useful(); >>> bean.someMethod(arg1, arg2); >> >> Actually, this would (should) not work as the constructor of Useful >> is private. It may be that this would not matter in flow, that is, >> one can call private constructors (did not try). In Spring this is >> possible. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org > -- Andre H. Juffer | Phone: +358-8-553 1161 Biocenter Oulu and | Fax: +358-8-553-1141 Department of Biochemistry | Email: andre.juffer@oulu.fi University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/ StrucBioCat | WWW: www.strucbiocat.oulu.fi Triacle Biocomputing | WWW: www.triacle-bc.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org