Hi Evgeny,
Someone else had this problem, but I think we thought it was fixed in
2.0M4. I'll can take a look at it in the next few days. Can you file
a bug?
Thanks,
Rhett
On Aug 31, 2009, at 5:00 AM, Evgeny Shepelyuk wrote:
> Hello,
>
> I'm migrating application from 1.1 branch to 2.0 and have problems
> with
> SpringBeanFinder.
> Is it usable in 2.0 branch ? While debugging i've discovered that
> check is
> performsed against targetClass property.
> This happen in superclass Finder. But this shouldn't be taken into
> account. The same code worked OK in 1.1 branch.
> Let me put snippet of XML to illustrate. TransactionResource extends
> ServerResource.
>
> <bean id="transactionResource"
> class="com.si.prydbay.billing.restlet.TransactionResource"
> scope="prototype">
> <property name="transactionService" ref="transactionService"/>
> <property name="transactionsHtml"
> value="classpath:transactions.html"/>
> <property name="tokenService" ref="tokenService"/>
> </bean>
>
> <bean id="merchantRouter"
> class="org.restlet.ext.spring.SpringRouter">
> <property name="attachments">
> <map>
> <entry key="/transactions/{transactionId}">
> <bean
> class="org.restlet.ext.spring.SpringBeanFinder">
> <property name="beanName"
> value="transactionResource"/>
> </bean>
> </entry>
> </map>
> </property>
> </bean>
>
> --
> Regards,
> Evgeny Shepelyuk
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2388816
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2389914