So, I have been trying a number of approaches with varying success. Using a service in a standalone implementation and retrieving the service with a call to getService() on the registry works as expected. Any @Inject annotations on fields work great.
I have had less joy with the class factory. I've had to move a lot of calls around to ensure that I never reference the class anywhere before calling a service that injects the class factory, and ask it to create the class. As I understand it, I need to 1. create the class in the class loader with ClassFab classFab = classFactory_.newClass(typeName, Object.class); <transformations go here> classFab.createClass(); 2. I can then create the class with new as usual, and will receive an instance of the modified class. The first step needs to happen before the class is ever referenced. If I do this during startup, this may mean creating a bunch of classes in the class loader that I may never use. And I need to have the correctly stringified name of every class that I wish to transform. Not pretty, but probably doable. My second problem is that I have not been able to find a good example in the IOC code for calling the class transformations. Is there a ready-made transformer that will apply all the transformations that are registered in the AppModule for the project? Any help or thoughts appreciated. Cheers, Adriaan --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org