@Override
		public void onApplicationEvent(ContextRefreshedEvent event) {
			ApplicationContext context = event.getApplicationContext();
			Map<String, Object> moduleConfiguration = context.getBeansWithAnnotation(Configuration.class);
			boolean found = false;
			if (!CollectionUtils.isEmpty(moduleConfiguration)) {
				for (String pkg : basePackages) {
					if (found) {
						break;
					}
					for (Object obj : moduleConfiguration.values()) {
						if (obj.getClass().getName().startsWith(pkg)) {
							found = true;
						}
					}
				}
			}
			if (!found) {
				throw new RuntimeException(String.format(
						"Unable to find a module @Configuration class in base_packages: %s for module %s:%s",
						StringUtils.arrayToCommaDelimitedString(basePackages),
						moduleDefinition.getName(), moduleDefinition.getType()
						));
			}
		}
A {@link SimpleModule} configured by an @Configuration class.

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