If I understand well the initial problem, ie overriding some value defined already in FactoryDefaults, then the normal, out-of-the-box, solution with HiveMind is to define the new value (with the same symbol name) as a contribution to the hivemind.ApplicationDefaults.
That's exactly the idea behinf FactoryDefaults / ApplicationDefaults: module providers (like hivetranse, let's not be afraid of self-advertising;-)) would define "FactoryDefaults" that are supposed to cover the "standard" or most usual needs, but module users always have the possibility (not the obligation) to override these defaults through "ApplicationDefaults". That's it! I believe your solution is a little bit complicated for this problem. My 2 cents Jean-Francois -----Original Message----- From: Robert Cole [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 05, 2006 10:10 PM To: Tapestry users Subject: Re: Hivemind is doing my nut. Override FactoryDefaults? I finally got it working. For reference, here's my solution: <service-point id="MySettings" interface="org.apache.hivemind.SymbolSource"> <invoke-factory> <construct class="org.apache.hivemind.service.impl.DefaultSymbolSource" > <set-configuration configuration-id="ApplicationProperties" property="defaults"/> </construct> </invoke-factory> </service-point> <configuration-point id="ApplicationProperties" schema-id="hivemind.Defaults"/> <contribution configuration-id="ApplicationProperties"> <default symbol="ignoreFailure" value="true"/> <default symbol="newFilter" value="com.db.csa.security.AFilter"/> <default symbol="tapestry.acegi.authenticationEntryPoint" value="null"/> </contribution> Rob Cole "Jesse Kuhnert" <[EMAIL PROTECTED]> 05/09/2006 14:58 To "Tapestry users" <users@tapestry.apache.org> cc Please respond to "Tapestry users" <users@tapestry.apache.org> Subject Re: Hivemind is doing my nut. Override FactoryDefaults? I think to override a value you just simply define a new contribution configuration point for hivemind.FactoryDefaults no? Ie <contribution configuration-id="hivemin.FactoryDefaults"> <foo /> </contribution> (The code is made up and probably non functional, but you get the idea). On 9/5/06, Robert Cole <[EMAIL PROTECTED]> wrote: > > > Hi all, > > hopefully a very quick one. Can someone please give me a pointer as to how > to override a value in hivemind.FactoryDefaults? Its been holding me up > for the last 2 hours and I'm about to pull out what's left of my hair. > > So far I think that I need to create my own SymbolSource contribution > point and then add that to the hivemind.SymbolSources contribution, and > then add my values to my symbol source. Is that right? Can someone point me > in the direction of how to set up a SymbolSource? > > I've found something on HLS's website ( > http://howardlewisship.com/blog/2003_07_01_archive.html) but it could well > be out of date. > > Any help would be very, very much appreciated. > > Thanks, > > Rob Cole > > --- > > This e-mail may contain confidential and/or privileged information. If you > are not the intended recipient (or have received this e-mail in error) > please notify the sender immediately and destroy this e-mail. Any > unauthorized copying, disclosure or distribution of the material in this > e-mail is strictly forbidden. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com --- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]