Navigation support in Spring beans configuration files

This page describes the support for navigation in Spring beans configuration files.



Typically, applications using the Spring Framework will have a Spring beans configuration file which has many references to various Java sources defined within the project. The hyperlinking functionality enables a Spring user to quickly jump from a Spring beans config file to the relevant Java classes and methods inside them. For example, when a user presses Ctrl+LeftMouseButton over the underlined attribute value shown below, the Person.java source file will be opened in the editor. Also, clicking on the “name” attribute value will take the user to the declaration of the setName() method inside the Person class or one of its editable superclasses.

File:SpringSupportNavigation/hyperlinking SpringSupportNavigation.png

A detailed list of hyperlinking scenarios is also available.

Go to Bean dialog

A Go to Bean dialog similar to the Go to Type dialog will allow the user to quickly navigate to a given bean definition by its name. See GotoSpringBeanUISpecification for details.

Bean navigator (7.0)

The navigator will offer a logical view of the beans definitions in the current file. For example, for the following file:

<bean id="propertyConfigurer"

<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
  <property name="driverClassName" value="org.mysql.jdbc.MySqlDriver"/>
  <property name="url" value="jdbc:mysql://localhost/foo"/>

the navigator could offer the following logical view:

[B] propertyConfigurer (PropertyPlaceholderConfigurer)
    [P] location ("/WEB-INF/jdbc.properties")
[B] dataSource (DriverManagerDataSource)
    [P] driverClassName ("org.mysql.jdbc.MySqlDriver")
    [P] url ("jdbc:mysql://localhost/foo") 

where [[[B | [B]] and [[[P | [P]] are icons for a bean definition and a property.

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo