Hi Johnson,
Your "org.mycompany.myGurad" class could have a default constructor that
would invoke its parent Guard's constructor with the proper parameters. For
the context, just pass the result of the static Context.getCurrent() method.
Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~
http://www.restlet.orgNoelios Technologies ~ Co-founder ~
http://www.noelios.com-----Message d'origine-----
De :
[hidden email] [mailto:
[hidden email]]
Envoyé : mardi 7 juillet 2009 06:33
À :
[hidden email]
Objet : How to configure Guard in restlet and Spring integration env
Hi,
I am using restlet1.1.5 with Spring, now I had a try with Digest with Guard.
I would like do that like:
<bean id="component" class="org.restlet.ext.spring.SpringComponent">
<property name="defaultTarget" ref="guard" />
</bean>
<bean id="guard" class="org.mycompany.myGurad">
<property name="next" ref="restRoute">
</bean>
<bean id="restRoute" class="org.restlet.ext.spring.SpringRouter">
<property name="attachments">
.....
the problem I am facing is system ask the guard class to have a init method
and a empty constructor. but it seems Guard class in restlet doesn't support
that.
if what I understood is wrong, what is right?
best regards,
Johnson
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=7458&dsMessageId=2368640
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=7458&dsMessageId=2368710