SpringSupport
Spring Framework support
This is the umbrella page for the support of the Spring Framework in NetBeans.
Contents |
Planning documents
Competition
| Feature | NetBeans | Spring IDE | IntelliJ IDEA | Notes |
|---|---|---|---|---|
| Project Support Infrastructure | 6.1 | Y | Y | |
| Wizards | 6.1 | Y | Y | |
| Code Completion | 6.1 | Y | Y | |
| Live Parsing, Error Marking and Editor Suggestions | N | Y | Y | |
| Visual Editor | N | Y (read only) | Y (read only) | |
| Hyperlinking | 6.1 | Y | Y | |
| Refactoring | 6.1 | Y | Y | |
| Navigator | N | Y | Y | |
| Mark Occurrences | 6.1 | Y | Y | |
| Spring Explorer | N | Y | N | |
| AOP Support | N | Y | Y | |
| Find Usages | 6.1 | Y | Y | |
| Hibernate Support | N | N/A | Y | |
| Spring MVC | Y | Y | Y (indirect) | |
| Spring Web Flow | N | Y | N | |
| Struts, Struts2, JSF Integration | N | N | N | |
IntelliJ IDEA
Does not recognize bean config files, it needs to be told where they are (needed for relationships between files), but there is autodetection support. Files can be grouped in sets (useful for references between files, which can be implicit).
Supports downloading the Spring libraries, seemingly from a Maven repository.
Extensive code generation features in bean config files on Alt+Insert:
- for creating new beans
- for setting the properties of a bean
- for creating new well-known beans provided by Spring (Template Beans)
- e.g. data sources (but there is no support for e.g. generating such a data source from a database connection)
- for creating sets of beans that are commonly used together when using a certain technology, e.g., JPA (Patterns)
- and can download the JAR files for that technology (again, Maven repository)
Nice code completion support
- for Java artifacts
- for bean references
- smart code completiong
- suggests the name for a bean whose class is already known
- checks Java types for the ref attribute and constructor-ref element
Navigation support:
- hyperlinking - beans, Java classes, Java properties
- graphical view for bean config files / file sets
Validation support, including quick fixes
Seemingly no special support for Spring MVC
Spring IDE (http://www.springide.org)
Does not recognize bean config files, it needs to be told where they are. Files can be grouped in sets (useful for references between files, which can be implicit).
There seems to be no support for downloading the Spring libraries, and Spring is not bundled (at least not in a way that would allow the user to add it to a project).
Code completion support
- for Java artifacts
- nice code completion for Java packages (allows completing the whole package at once instead of component-by-component, as in IntellliJ)
- for bean references
- smart code completion
- suggests the name for a bean whose class is already known; the suggested name is based on both the beans class and the interfaces it implements
Navigation support
- hyperlinking - beans, Java classes, Java properties
- seemingly no support for the p-namespace
- graphical view for bean config files
- Open Spring Bean action
Refactoring
- updating the references to a renamed bean class
- updating the references to a renamed bean
Validation support
Spring AOP support
Spring Web Flow support
