Thursday, March 10, 2011

Re: Abstraction in RequestFactory

Maybe instead of parameterizing the method you should parameterize the class:
class BaseEntity<T extends BaseEntity> {
  public List<T> findPage(int start, int length, List<String> sortFields, List<Boolean> sortDirs) {
    …
  }
}
class TestEntity extends BaseEntity<TestEntity> { … }

but even then, it wouldn't work, because of the issue David mentionned: you'd have to repeat the method declaration inside TestEntityService (I guess using this workaround, it would work though).

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate