What are the pro and con of xml vs. annotation?
It really depends on your organization environment, I’d say, since this can be turned into a hot debate. Having said that, I feel strongly that POJO annotation is well suited for PojoCache. This is because once you specify the annotation, you’d probably change it rarely since there is no parameters to tune, for example.