This content has been marked as final. 
    
Show                 2 replies
    
- 
        1. Re: Deployment Scanner frameworkgavin.king Jun 29, 2007 8:54 PM (in response to colintoal)No, not yet, but there is a JIRA issue asking for this and we are definitely going to open it up when we get time. 
- 
        2. Re: Deployment Scanner frameworkcolintoal Jun 29, 2007 11:12 PM (in response to colintoal)Cool - I'm glad its on the plan for the future - as the Scanner facility is nice. 
 One thought I had is to use a meta-annotation to represent "scan discoverable".
 One could annotate the annotation that indicates why the class is being discovered with it.
 I'm imagining something like:public @interface @ScanDiscoverable { String value() default ""; // resource token ? like seam.properties ? necessary ? } ... // Seam example @ScanDiscoverable public @interface Name ...
 This provides the ability to extend the Scanner's discoverable classes with new annotations (like my @JCRContentItem annotation).
 Then the Scanner could be extended with Pre and Post Scan hooks (also discovered during scanning):public @interface ExecutePostScan { Annotation discoverable(); }
 Methods (or Classes ? I'm not quite sure yet) bearing this annotation would have to implement a contract like@ExecutePostScan(discoverable=JCRContentItem) public void executePostInitializeScan ( ServletContext ctx, Set<Class<Object>> ) 
 This would give the new @ScanDiscoverable annotation implementor a clean post Scan hook.
 
    