Class RestComponentScanConfig

java.lang.Object
ubic.gemma.rest.util.RestComponentScanConfig

@Configuration @ComponentScan(basePackages="ubic.gemma.rest", nameGenerator=BeanNameGenerator.class, excludeFilters=) public class RestComponentScanConfig extends Object
Component-scan configuration for the gemma-rest module, replacing the XML <context:component-scan> block previously declared in applicationContext-component-scan.xml.

Scans ubic.gemma.rest for stereotype-annotated beans (@Component, @Service, @Repository, @Controller, @Configuration, etc.) using Gemma's custom BeanNameGenerator (which strips the "Impl" suffix from bean names) and excludes classes annotated with TestComponent so the production context never picks up test-only beans.

Wired in applicationContext-component-scan.xml as a <bean> so the existing wildcard XML loader (classpath*:ubic/gemma/applicationContext-*.xml — see SpringContextUtils and web.xml) still discovers it without any classpath-order changes.

  • Constructor Details

    • RestComponentScanConfig

      public RestComponentScanConfig()