@Override
		public void onApplicationEvent(ApplicationPreparedEvent event) {
			AnnotationConfigApplicationContext context = (AnnotationConfigApplicationContext) event
					.getApplicationContext();
			context.scan(basePackages);

		}
A {@link SimpleModule} configured by an @Configuration class.

@author David Turanski
spring-xd-module/src/main/java/org/springframework/xd/module/core/JavaConfiguredModule.java