Menu

spring framework

aappddeevv

You can also use XIML and the spring framework. The most common scenario is to ensure that the spring application context (through the autowire bean factory) can create some of the objects in the XIML description. To do this, merely override the getTypeInvoker in the context configuration object and create an invoker that delegates some, but not all, of the doCreateInstance calls to the bean factory.

The second scenario is to have objects name in the the XIML specification to be found in the context. You can do this but its generally a bad idea. Why? You do not want all the object creations to go through a spring context, its too slow. Instead, I have written a smaller invoker filter that merely checks the package. If the package of the type is in the package of my application, the object is created or found in the application context. This works fine and is very spring-like.


MongoDB Logo MongoDB