You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Kalle Korhonen <ka...@gmail.com> on 2010/12/04 04:23:49 UTC
[ANNOUNCEMENT] tapestry-resteasy 0.2.1 released!
Hey, wouldn't it be great if you could just reload your RESTful
service classes live while developing them? Oh that's right, that's
exactly what tapestry-resteasy 0.2.1 allows you to do! This is T5.2.x
specific maintenance release, updating the JAX-RS dependency to JBoss'
resteasy GA release 2.0.1. Read more at
http://tynamo.org/tapestry-resteasy+guide.
Release notes (from http://jira.codehaus.org/browse/TYNAMO/fixforversion/16916):
Improvement
* [TYNAMO-64] - Live Class Reloading for REST services
Enjoy,
Tynamo Team
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [ANNOUNCEMENT] tapestry-resteasy 0.2.1 released!
Posted by Alejandro Scandroli <al...@gmail.com>.
Hi antalk
You should be able to use only one @Path annotation in your class.
As long as you provide one default @GET or @POST method you should be fine
See:
http://svn.codehaus.org/tynamo/trunk/tapestry-resteasy/src/test/java/org/tynamo/resteasy/rest/EchoResource.java
Saludos.
Alejandro.
On Fri, Feb 3, 2012 at 11:54, antalk <an...@intercommit.nl> wrote:
> I got it working now:
>
> Had to annotate both my class AND the method with a @Path annotation.
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/ANNOUNCEMENT-tapestry-resteasy-0-2-1-released-tp3291865p5453476.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [ANNOUNCEMENT] tapestry-resteasy 0.2.1 released!
Posted by antalk <an...@intercommit.nl>.
I got it working now:
Had to annotate both my class AND the method with a @Path annotation.
--
View this message in context: http://tapestry.1045711.n5.nabble.com/ANNOUNCEMENT-tapestry-resteasy-0-2-1-released-tp3291865p5453476.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [ANNOUNCEMENT] tapestry-resteasy 0.2.1 released!
Posted by antalk <an...@intercommit.nl>.
Oh. i am mistaken,
The @Provider annotation is not needed. However the annotated interface is
not picked up by the 'ResourceMethodRegistry' because it is an interface..
The following piece of code:
protected void processMethod(ResourceFactory ref, String base, Class<?>
clazz, Method method)
{
Path path = method.getAnnotation(Path.class);
Set<String> httpMethods = IsHttpMethod.getHttpMethods(method);
if (path == null && httpMethods == null)
{
if (clazz.isInterface()) return;
Returns and will not process the class further for jax-rs annotations making
my implementation invisible..
--
View this message in context: http://tapestry.1045711.n5.nabble.com/ANNOUNCEMENT-tapestry-resteasy-0-2-1-released-tp3291865p5453340.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [ANNOUNCEMENT] tapestry-resteasy 0.2.1 released!
Posted by antalk <an...@intercommit.nl>.
Hi Tynamo Team,
I just discovered a missing piece of documentation for the live-reloading to
work: In order to be able to contribute your interface to the
javax.ws.rs.core.Application, you have to annotate it with at least
@Provider.
(see: line 146 in ResteasyRequestFilter.java)
} else if (obj.getClass().isAnnotationPresent(Provider.class)) {
providers.add(obj);
This is not in the documentation but it wont start otherwise.
--
View this message in context: http://tapestry.1045711.n5.nabble.com/ANNOUNCEMENT-tapestry-resteasy-0-2-1-released-tp3291865p5453097.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org