Tim,
Currently the XWork IoC container isn't nearly as powerful as Spring or
Pico. That may or may not change -- I haven't decided on this yet. Your
request, as well as a few others, are some things that have been lurking
in the back of my head as stuff I'd like to get cleaned up for the
WebWork 2.1 release.

Please open a JIRA issue and I'll start planning a roadmap for the IoC
portion of WebWork.

Pat

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
Tim
> O'Donnell
> Sent: Wednesday, February 18, 2004 12:42 PM
> To: [EMAIL PROTECTED]
> Subject: [OS-webwork] XWork Component Configuration
> 
> Hi all,
> 
> Is there a way to define some default properties for a component in
the
> component.xml file? For example, if I have a component named
> LdapManager, I might want to provide some properties such as host,
> port, base dn, etc that get set when the component is initialized.
> Maybe it's defined in the component.xml file like:
> 
> <component>
>    <scope>application</scope>
>    <class>some.domain.LdapManager</class>
>    <enabler>some.domain.LdapManagerAware</enabler>
>    <params>
>      <param>
>        <name>host</name>
>        <value>ldap.domain.com</value>
>      </param>
>      <param>
>        <name>baseDn</name>
>        <value>ou=People,o=Company</value>
>      <param>
>    </params>
> </component>
> 
> where host and baseDn would essentially call setHost() and setBaseDn()
> on LdapManager.
> 
> Am I just dreaming here, or does something like this exist? I checked
> the docs online (XWork wiki) and couldn't find anything (which is
maybe
> my answer), but maybe I missed it.
> 
> If not, how do most people handle component configuration? Just read
in
> some properties/configuration file on init(), or is there a better
way?
> 
> Thanks for any advice,
> 
> Tim
> 
> 
> 
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to