Questions or comments? Please use our dedicated forum.
To develop plugins integrating with Spring-API you will need to use IntelliJ IDEA Ultimate Edition version 13.1 (or higher).
Please (re-)create a IntelliJ Platform SDK to include all minimum required files.
Alternatively, follow these steps to modify existing SDK:
If you use other Spring functionality (e.g. Spring EL) in your plugin, make sure to add all required JARs to your IntelliJ Platform SDK classpath to make your plugin's tests work.
Please use only Spring-related functionality exposed in
<depends>com.intellij.spring</depends> to your
plugin.xml to require "Spring Support" plugin to be activated. Navigate to target to see all available extension points.
Note that "Spring Support" plugin itself has dependencies to a few other plugins which need to be enabled in your sandbox (see notifications on startup).
A Spring facet can be attached on a Module.
Spring facets usually contain one more user-configured/provided filesets, which group a set of Spring related configuration files (XML, Code or .properties files).
A fileset usually corresponds to one actual application context configuration at runtime.
Filesets can depend on other filesets (possibly in another module).
As an API-user, you will usually rather work with SpringModel (which is built on top of fileset(s)).
com.intellij.spring.SpringModelProvider to provide implicit filesets (e.g. provided by another framework in specific configuration file).
com.intellij.spring.model.SpringImplicitBeansProviderBase to provide implicit (framework-specific) beans (e.g. "servletContext" by Spring MVC).
com.intellij.spring.dom.SpringCustomNamespaces, registered namespace-key must match the one registered with your DOM elements via
Use the following template:
@Convert(SpringBeanResolveConverter.class) @RequiredBeanType("com.fqn.to.required.class") // optional GenericAttributeValue<SpringBeanPointer> getMyAttributeName();
Add additional inspections (e.g. for custom namespace) to Spring Validator (Settings|Compiler|Validation) via EP
com.intellij.spring.facet.SpringConfigurator to provide "automatic" configuration when Spring facet is added via framework wizard.