I have given up on the idea of accessing the application wide message catalog. Instead, I will store key/value pairs in the Application default symbol source and access the key/value pairs via the ApplicationDefaults SymbolProvider.
public static void contributeComputeWorker( MappedConfiguration<Class, IComputeWorker> configuration, @InjectService("MaximaScriptExecuter") IScriptExecuter maximaScriptExecuter, @InjectService("ApplicationDefaults") SymbolProvider symbolProvider) Shing Home page : http://www.lombok.demon.co.uk/ --- On Mon, 2/6/08, Shing Hing Man <[EMAIL PROTECTED]> wrote: > From: Shing Hing Man <[EMAIL PROTECTED]> > Subject: Tap 5.0.12 snapshot: How to access the application wide message > catalog in a contribution > To: "tapestry Tapestry" <[EMAIL PROTECTED]> > Date: Monday, 2 June, 2008, 2:16 AM > Hi, > In a contribution to a StrategyBuilder configuration, I > would like to > access the application wide messaga catalog. > > > public static IComputeWorker buildComputeWorker( > Map<Class, IComputeWorker> configuration, > @InjectService("StrategyBuilder") > StrategyBuilder builder) { > StrategyRegistry<IComputeWorker> registry = > StrategyRegistry > .newInstance(IComputeWorker.class, > configuration); > > return builder.build(registry); > } > > > public static void contributeComputeWorker( > MappedConfiguration<Class, IComputeWorker> > configuration, > @InjectService("MaximaScriptExecuter") > IScriptExecuter maximaScriptExecuter, > Messages applWideCatalog) { > configuration.add(CrtBean.class, new CrtCW()); > > DerivativeCW derivativeCW = new DerivativeCW(); > // Like to do : derivativeCW.setProperty(a > value from applWideCatalog) > > derivativeCW.setExecuter(maximaScriptExecuter); > > configuration.add(DerivativeBean.class, derivativeCW); > Tex2ImCW tex2imWorker = new Tex2ImCW(); > configuration.add(Latex2GifBean.class, tex2imWorker); > > } > > > How to make the application wide catalog available in the > above method contributeComputeWorker? > Thanks in advance for any assistance! > > Shing > > > Home page : http://www.lombok.demon.co.uk/ > > > > > __________________________________________________________ > Sent from Yahoo! Mail. > A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] __________________________________________________________ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]