This content has been marked as final.
Show 1 reply
-
1. Re: Seam Deployment Annotations
pushpak1981 Sep 30, 2010 11:07 AM (in response to pushpak1981)Hi,
I was able to load the my custom annotations by using the method mentioned in seam documentation. I have used the following class:
@Name("fooStartup") @Scope(APPLICATION) @Startup public class FooStartup { @In("#{deploymentStrategy.annotatedClasses['com.acme.Foo']}") private Set<Class<Object>> fooClasses; @In("#{hotDeploymentStrategy.annotatedClasses['com.acme.Foo']}") private Set<Class<Object>> hotFooClasses; @Create public void create() { for (Class clazz : fooClasses) { handleClass(clazz); } for (Class clazz : hotFooClasses) { handleClass(clazz); } } }
I have some queries:
1. I have added one class with custom annotation during the hot deployment then will that new class be present into the List ?
2. Does this component needs to loaded at startup or else i can access it from other component as well without the application scope ?
Any help would be highly appreciated.
Thanks.