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.
Summary: | viewClass property in spring config should be in refactoring scenario | ||
---|---|---|---|
Product: | javaee | Reporter: | Geertjan Wielenga <geertjan> |
Component: | Spring | Assignee: | Martin Fousek <marfous> |
Status: | NEW --- | ||
Severity: | blocker | CC: | pjiricka |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 173299 |
Description
Geertjan Wielenga
2008-07-10 08:16:38 UTC
viewClass property is of the type 'Class' and it seems that there is a convertor behind the scenes which converts the FQN string to a Class object. IMO, this is too specific a scenario to support in generic Spring refactoring code. I see two possible solutions: 1. Implement this refactoring in the Spring RCP tooling (you will perhaps need to add a friend dep and I will be more than happy to help) 2. Enhance the current refactoring + editing code to account for all such properties in beans - a better solution, though not possible for 6.5. Comments? Here's another scenario where refactoring support would be valuable. Below, note the "simple.DemoPerspectiveFactory": <bean id="applicationPageFactory" depends-on="serviceLocator" class="org.springframework.richclient.application.docking.flexdock.FlexDockApplicationPageFactory"> <property name="floatingEnabled" value="true" /> <property name="defaultPerspective" value="defaultPerspective" /> <property name="perspectiveFactory"> <bean class="simple.DemoPerspectiveFactory"> <property name="dockableIds"> <list> <value>NewSpringView</value> <value>NewSpringView1</value> <value>NewSpringView2</value> <value>NewSpringView3</value> </list> </property> </bean> </property> </bean> About your solutions, 2 is preferable, I agree, so we should leave this issue open for that. But 1 is interesting, would be cool to know how it is done. Tell me what to do? |