This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 80464

Summary: Refactoring support for Spring configuration files
Product: javaee Reporter: pinus <pinus>
Component: SpringAssignee: Petr Cyhelsky <cyhelsky>
Status: RESOLVED WORKSFORME    
Severity: blocker CC: pjiricka
Priority: P3    
Version: 6.x   
Hardware: All   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 173299    

Description pinus 2006-07-18 11:22:58 UTC
Extending 64534. I would like to have refactoring support for Spring
configuration files. 
1. Moving a class should change the class name in the configuration.
2. Renaming a property should rename the Spring-Property.

It might be possible to create an API to plug in refactoring support for any
file type.
Comment 1 Jan Pokorsky 2008-10-16 16:30:25 UTC
The SPI exists. See org.netbeans.modules.refactoring.spi.RefactoringPluginFactory. Reassigning to web/spring.
Comment 2 nairsujit 2008-10-21 05:37:04 UTC
@ Reporter (haug) :

The refactoring support you mention are already available in the NetBeans 6.5 release. Please confirm and let me know
whether you wanted the same.

Regards,
Sujit
Comment 3 dusty 2009-08-07 14:35:27 UTC
I'm using latest netbeans (6.7) and suffer the same problem: when I refactor a class moving it from one package to
another the spring configuration (applicationContext.xml) is not refactored and I need to modify it by hand.
Comment 4 Petr Jiricka 2009-09-30 13:54:20 UTC
Per comment by nairsujit, the code should already be there. If it does not work, then it's a bug, not enhancement request.
Comment 5 Petr Cyhelsky 2009-11-03 12:32:55 UTC
I have tried many different scenarios and it seems to work consistently in 6.8 , closing as worksforme - please reopen
if you encounter it in 6.8 and in that case please include detailed description of the particular refactor (path of
target and source, messages.log)