Re: ObjectRepositoryAssembler issue

Thelmo Loisio <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
Sorry i miss to specify that my Config.java has a public constructor:
public Config() {
}

Regards.

On Wed, 2003-11-12 at 10:24, Thelmo Loisio wrote:
> I would like to start using the OR which really is a good way to solve
> some of my problems.
> 
> I need to set some global (application wide) parameters so i've done a
> class which have some methods that i would like to call from
> object-repository.xml
> 
> In my class i got:
> class Config {
>  public static String a;
>  public HashMap b;
>  public void addSomethingToB(String key, String value) {
>   b.pub(key, value);
>  }
> }
> 
> And in object-repository.xml i got
> <object name="$myconfig" class="mypackage.Config">
> <prop name="a">Set this string</prop>
> <method name="addSomethingToB" arg="do" arg0="it" />
> </object>
> <register key="MY_CONFIG" value="$myconfig" />
> 
> Now i've enable all the possible logging (which is a lot) and i can se
> that the prop is correctly settled while when it try to invoke the
> method it use:
> addSomethingToB(Set this string, do, it) instead of using only the two
> "arg" value i'm passsing to it
> 
> Any hint !?
> 
> Thanks
> -- 
> Thelmo
> 
> 
> 
> --
> Email.it, the professional e-mail, gratis per te: http://www.email.it/f
> 
> Sponsor:
> Scopri i vantaggi della Wooow Flat: fino a 3 mesi gratis, scopri come cliccando qui
> Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=1813&d=12-11
> _______________________________________________
> Barracuda mailing list
> [email protected]
> http://barracudamvc.org/lists/listinfo/barracuda
-- 
Thelmo



--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
Sei un webmaster, vuoi guadagnare? Affiliati ad Artefiori. Clicca qui!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=751&d=12-11
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.