Skip to content

Commit

Permalink
STS-2592: RequestMappings and Controllers do not appear in the Spring
Browse files Browse the repository at this point in the history
  • Loading branch information
leods committed Apr 26, 2012
1 parent 6c36bec commit 4572caa
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2008, 2010 Spring IDE Developers
* Copyright (c) 2008 - 2012 Spring IDE Developers
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
Expand All @@ -19,6 +19,7 @@
import org.eclipse.core.runtime.IExtension;
import org.eclipse.core.runtime.IExtensionPoint;
import org.eclipse.core.runtime.Platform;
import org.springframework.ide.eclipse.beans.core.internal.model.BeansModelUtils;
import org.springframework.ide.eclipse.beans.core.metadata.BeansMetadataPlugin;
import org.springframework.ide.eclipse.beans.core.metadata.model.IBeanMetadata;
import org.springframework.ide.eclipse.beans.core.model.IBean;
Expand Down Expand Up @@ -152,13 +153,13 @@ public static Collection<? extends Object> getProjectChildren(IBeansProject proj
// add meta data grouping
for (IBeansConfig beansConfig : project.getConfigs()) {
// add beans from config
for (IBean bean : beansConfig.getBeans()) {
for (IBean bean : BeansModelUtils.getBeans(beansConfig)) {
addMetaDataForBean(project, metaDataMapping, bean);
}

// add nested component beans; required for component scan
for (IBeansComponent beansComponent : beansConfig.getComponents()) {
for (IBean bean : beansComponent.getBeans()) {
for (IBean bean : BeansModelUtils.getBeans(beansComponent)) {
addMetaDataForBean(project, metaDataMapping, bean);
}
}
Expand Down

0 comments on commit 4572caa

Please sign in to comment.