SourceForge.net Logo
Main Overview Wiki Issues Forum Build Fisheye
Issue Details (XML | Word | Printable)

Key: CMP-402
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Shay Banon
Reporter: Justin Daly
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Compass

SingleCompassGps.setIndexSettings setter overload prevents spring configuration

Created: 16/May/07 05:49 PM   Updated: 18/May/07 01:56 AM
Component/s: Compass::Gps
Affects Version/s: 1.2 M2
Fix Version/s: 1.1.2, 1.2 M2

Environment: spring 2/websphere


 Description  « Hide
when trying to configure the SingleCompassGps to process indexing in ram using the bean config:

<bean id="compassGps" ...>
<property name="compass" ref="compass"/>
<property name="gpsDevices">
<list>
<bean class="org.compass.spring.device.SpringSyncTransactionGpsDeviceWrapper">
<property name="gpsDevice" ref="hibernateGpsDevice"/>
</bean>
</list>
</property>
<!-- index in background to ram, not hibernate -->
<property name="indexSettings">
<props>
<prop key="compass.engine.connection">ram://indexingMirror</prop>
</props>
</property>
</bean>

i get a TypeMismatchException saying it's expecting a CompassSettings object instead of java.util.Properties

i thought of using CompassSettings, but in doStart(), this value is overwritten and then populated with the indexSettings:Properties property

possible solution is to remove or rename the setIndexSettings(indexSettings:CompassSettings) method (i don't know if it's used anywhere else)



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Shay Banon added a comment - 18/May/07 01:56 AM
Added another method called setIndexProperties. Spring should be smarted, but then again, it uses JavaBean injection and not pure reflection.