-
1. Re: Intercepting component installation
christian.bauer Mar 24, 2007 5:06 PM (in response to christian.bauer)Ah, I'm stupid. Seam registers the components in the application context, so I just need to iterate through the names and pick *.component.
-
2. Re: Intercepting component installation
christian.bauer Mar 24, 2007 5:22 PM (in response to christian.bauer)Now I need to intercept component startup. So I could use @Startup but I really depend on _all_ other components being installed first. The depends=[] attribute doesn't really work for me. I guess I could use something like @Startup(dependsPackages=[]).
-
3. Re: Intercepting component installation
pmuir Mar 26, 2007 7:22 AM (in response to christian.bauer)I've been thinking we need more hooks into startup. For example, we want to be able to scan for *.jpdl.xml and load them as pageflows.
I had been thinking we should have the ability to register a listener on the scanner; this could work here? -
4. Re: Intercepting component installation
christian.bauer Mar 27, 2007 3:00 AM (in response to christian.bauer)That wouldn't work for me, I need the components to be initialized before my startup listener runs.
I'm using @Autocreate now and call it first thing on the first page of the application. Not a permanent solution.