Tag Archive for 'features'

Last Minute Features for 2.0

Due to a bug in one of Spring IDE’s validation rule that was fixed post-RC1 and a small glitch in Spring’s AOP namespace handler implementation, our latest nightly build ships a Spring 2.1 OSGi bundle. Therefore we could enable the support for two additional features that were already implemented.

The AOP feature now supports Spring 2.1’s new bean(<name pattern>) pointcut primitive that enables you to specifiy a certain bean or a set of beans for pointcut matching. For example the pointcut definition

<aop:pointcut expression="bean(serviceBean)" />

would only match on a bean named serviceBean. Certainly you can combine the bean pointcut primitive with any other primitive that is supported by Spring. It even works for @AspectJ-style aspects.

The second and last new feature - we are now feature complete for the 2.0 stream - is support for <context:component-scan />. Read Mark’s blog for more information on this new feature. Beans created by the class path scanning infrastructure are recognized by Spring IDE and handled as normal beans; though they are visually marked with an @ icon decoration.

Spring IDE 2.0 brings improved Project Explorer Integration

With this blog entry I would like to introduce one of Spring IDE 2.0’s new features - the improved integration with Eclipse’s Project Explorer.

But before delving into the details let’s take a look on the Project Explorer:

Project Explorer with web projectThis view was introduced with Eclipse 3.2. It leverages the Common Navigator Framework to present a domain-oriented view of the projects in the workspace. General projects are shown in the same way as the Navigator view, but other projects are presented in a hierarchy that makes sense for their particular domain. For example, Java projects appear as a hierarchy of source folders and packages rather than folders.

Project Explorer with web project Starting with version 1.3.3 Spring IDE contributed Spring-related content and corresponding filters to the Project Explorer.

With the upcoming version 2.0 of Spring IDE these contributions to the Project Explorer were further improved:

Continue reading ‘Spring IDE 2.0 brings improved Project Explorer Integration’

Adding Code Snippets in XML Editor

From my observation there are a couple features in Spring IDE that are being used very rarely, although I personally think that every one of them can become quite handy. I think that is because we haven’t promoted them and therefore most people don’t even know that they exist. This post is to introduce one very hidden feature.

springide_xml_templates_editor_thumb2.png Spring IDE installs a custom template category to the Spring Beans XML Editor. Out of the box Spring IDE adds a couple of common code snippet templates for inserting <bean />, <property /> and <constructor-args /> elements into Bean definition files. This snippets are available from the content assist proposals in the Beans XML Editor.

If you look around in Eclipse’ Preferences (Web and XML -> XML Files) you can find the Spring Beans XML Templates preference page. On that page you can modify and delete existing XML templates as well as create your own.

As you can see on the following screen shot, Spring IDE’s Web Flow support already installs templates for inserting <flow:executor /> and <flow:registry /> elements.

Anybody out there using this? Do you want us to include some more pre-definied templates? Which?

springide_xml_templates_editor2.png