Re: Configuration setup
Daniel Dekany <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Sunday, February 20, 2011, 6:09:28 PM, Daniel Henrique Alves Lima wrote: > Can i use Configuration.setCustomAttribute() to set a mark in > configurations already initialized? Yes. For some reasons set/getCustomAttribute is synchronized on its backing Map, so it's safe to call it at any point. (However note that you can't guarantee preventing double initialization using only that... it's nothing FM-specific, just a standard concurrent programming issue.) > Thanks. > > > Daniel Henrique Alves Lima wrote: >> Hi, Daniel. >> >> Is it safe to assume that template loader changing and auto-imports >> and shared variable definitions should be executed once per >> Configuration instance? >> I'm "reconfiguring" the same Configuration instance, with the *same* >> values, more than once. I intend to rework this code. >> >> (...) > -- Best regards, Daniel Dekany ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb