Issue Details (XML | Word | Printable)

Key: IDE-653
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Christian Dupuis
Reporter: Torsten Juergeleit
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Spring IDE

Spring's import element is not supported during validation

Created: 16/Jul/07 12:11 AM   Updated: 21/Jan/08 07:21 PM
Component/s: beans.core
Affects Version/s: 2.0
Fix Version/s: 2.0.3

Time Tracking:
Not Specified


 Description  « Hide
Let's use this ticket to summarize all the issues with Spring IDE's support for the <import> statement:

 All   Comments   Work Log   Change History   FishEye   Builds      Sort Order: Ascending order - Click to sort in descending order
Torsten Juergeleit added a comment - 16/Jul/07 12:12 AM
At first some technical information regarding Spring IDE's validation of BeansConfig files:

1. Spring IDE's BeansConfigValidator only validates the entities of the internally managed BeansCoreModel. The BeansConfig XML files are not parsed during validation.
1. The BeansConfig XML files are only parsed while (lazily) populating the BeansCoreModel or after a modification of a BeansConfig file (callback from Eclipse's workspace via

IResourceChangeListener
).
1. The
IBean
instances or
IBeansComponent
instances (XML namespace) of a BeansConfig file in the BeansCoreModel are populated with the information available from Spring's tooling support interface
IReaderEventListener
. This interface provides callbacks for the different artifacts Spring's
XmlBeanDefinitionReader
finds during parsing a BeansConfig XML file, e.g. beans, components (namespaces), aliases and imports.

Ok, now some issues with the support of the classpath protocol

<import>
tag with the aforementioned approach:

1. How do we get the imported BeansConfig files and it's artifacts into the BeansCoreModel?[[BR]]Here we need some help from Spring's tooling support (refer to the http://opensource.atlassian.com/projects/spring/browse/SPR-3536 JIRA ticket SPR-3536) first.
1. How do we get an

IResource
for artifacts which are not part of the Eclipse workspace (no
IResource
available), e.g. entities in an Eclipse Web Tools dynamic web project or a Maven repository added to the classpath of a SpringProject via an Eclipse !ClasspathContainer?
1. How do we get informed about a modification of a BeansConfig file which is not part of the Eclipse workspace?