I've updated the BeanInjector component and have created an RIAForge project to host these until we can figure out where these will live in the ColdSpring repository. The ColdSpring Bean Utilities project is at http://coldspringutils.riaforge.org/. It includes the BeanInjector and TDOBeanInjectorObserver, as well as the AbstractMetadataAwareAdvice, VOConverterAdvice, and GenericVOConverter. A zip file and Subversion access are available at RIAForge.

There is an update to the BeanInjector specifically. Bob Silverberg noticed a non-var-scoped variable during the initial caching of the metadata for the target object. This shouldn't actually affect anyone since the code lives in an exclusive lock, but better safe than sorry. Thanks Bob!

There's also a small update to ColdMock. You can now pass an optional argument named "isVirtualMethod" when you define a mock method. By default this is false, but if you specify true, ColdMock will skip all checks for the existence of the method, as well as argument and return type checks. This is useful if you want to mock a method that is injected dynamically into the component, since the metadata for the object will have no information on the dynamic method. So basically, you can define what the method will return, but you're on your own as far as making sure it is accepting and returning the proper types.

I hope folks find these useful!

del.ico.us del.icio.us | Digg It! Digg It! | Linking Blogs Linking Blogs | 1819 Views

Comments

Comments are not allowed for this entry.