Finding usages of JBoss cache

One thing that changed between JBoss 5 and JBoss 7 is cache management. During the migration project, one of the identified tasks was to migrate all the usages of the old cache implementation to the new one.

The team started to work on it, and when everything seemed done, the following question popped up: were there no other places relying on the old cache except for those already fixed? The developers were confident that there are no others but this confidence came from simply not having heard before of another place. This was only a belief. Once exposed, and given that the team knew that the check would be cheap, the developers felt the need to double check with real data.

So we used Moose to check all usages of the old org::jboss::cache ...

((self allNamespaces entityNamed: #'org::jboss::cache')
   allClasses flatCollect: #clientTypes)
      reject: #isStub

... and a couple of minutes later we learnt that the original assumption was correct. But, now we were sure.

Posted by Tudor Girba at 16 August 2013, 9:22 pm with tags assessment, spike, moose, story link
|