Problem accessing a service that extends a generic superclass

2011-02-26 Thread George Moschovitis
I have a simple service:

public class ArticleService {

   public Article findArticle(Long id) {
   ..
   }
   public void persist(Article artilce) {
   ..
   }
}

I use it with RequestFactory like this:

@Service(value = ArticleService.class, locator = 
DefaultServiceLocator.class)
public interface ArticleRequestContext extends RequestContext {
..
}

everything works as expected...

then I tried to refactor the service:

public class ArticleService extends BasicService {
...
}

wherein I moved methods like persist(), etc to the generic BasicService. 
Now, requests for persist() do no longer work.

any ideas? is there a problem with generic classes?

thanks in advance,
-g.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Problem accessing a service that extends a generic superclass

2011-02-28 Thread David Chandler
Hi George,

Please star this issue:
http://code.google.com/p/google-web-toolkit/issues/detail?id=5807

In the mean time, you can use the workaround shown in the issue and also in
the sample code for the listwidget project:
http://code.google.com/p/listwidget

HTH,
/dmc

On Sun, Feb 27, 2011 at 2:40 AM, George Moschovitis <
george.moschovi...@gmail.com> wrote:

> I have a simple service:
>
> public class ArticleService {
>
>public Article findArticle(Long id) {
>..
>}
>public void persist(Article artilce) {
>..
>}
> }
>
> I use it with RequestFactory like this:
>
> @Service(value = ArticleService.class, locator =
> DefaultServiceLocator.class)
> public interface ArticleRequestContext extends RequestContext {
> ..
> }
>
> everything works as expected...
>
> then I tried to refactor the service:
>
> public class ArticleService extends BasicService {
> ...
> }
>
> wherein I moved methods like persist(), etc to the generic BasicService.
> Now, requests for persist() do no longer work.
>
> any ideas? is there a problem with generic classes?
>
> thanks in advance,
> -g.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>



-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Problem accessing a service that extends a generic superclass

2011-02-28 Thread George Moschovitis
thanks for the tip!

-g.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.