Tim Driven Development | Test until the fear goes away
Uses the service-provider loading facilities, defined by the ServiceLoader class, to attempt to locate and load an implementation of the service...
There are three kinds of actuaries: those who can count, and those who can't.
... which isn't the case here.load an implementation of the service
Tim Driven Development | Test until the fear goes away
Carey Brown wrote:A possible approach is to have the MessageTemplet class get its values from a properties file.
Tim Cooke wrote:the requirement is to (build in a feature switch that will) enable us to configure whether it uses v1 or v2 of the MessageTemplate.
...The straight forward way to implement it isn't great for performance.
Because the properties don't live in a properties file. These MessageTemplate classes are a lot like a properties file, but just in the form of a class. I don't know why this is so but these are the cards I've been dealt so have to roll with it.Carey Brown wrote:... why not just get the values directly from the properties file?
Tim Driven Development | Test until the fear goes away
Tim Driven Development | Test until the fear goes away
Tim Driven Development | Test until the fear goes away
Tim Driven Development | Test until the fear goes away
Tim Driven Development | Test until the fear goes away
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Tim Cooke wrote:The only compromise I had to make was that I could no longer declare the static fields as final because the values are assigned later in the static block.
Tim Driven Development | Test until the fear goes away
Tim Driven Development | Test until the fear goes away
Tim Driven Development | Test until the fear goes away
Tim Driven Development | Test until the fear goes away
The airline is called "Virgin"? Don't you want a plane to go all the way? This tiny ad will go all the way:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|