2011-08-28 2 views
1

많은 서비스가 DAO에 노출되었습니다. (내 RequestFactory에 주석없이)이 인터페이스를 확장하지만GWT RequestFactory에서 RequestContext를 확장하는 인터페이스가 지원됩니까?

public interface DAORequestContext<T extends SRSProxyBase> extends RequestContext { 
    Request<T> find(Long id); 

    Request<T> load(Long id); 

    Request<T> save(T id); 
} 

:

public interface SafeRideRequestFactory extends RequestFactory { 
    public UserService userService(); 

    @Service(value = UserDAO.class, locator = DAOServiceLocator.class) 
    interface UserService extends DAORequestContext<SRSUserProxy> { } 
} 

내가 할 런타임 예외 :

[ERROR] org.saferide.shared.service.DAORequestContext has no mapping to a domain type (e.g. @ProxyFor or @Service) 
[ERROR] The type org.saferide.shared.service.DAORequestContext must be annotated with a @Service or @ServiceName annotation 
[ERROR] The RequestContext type org.saferide.shared.service.DAORequestContext did not pass validation 
[ERROR] Unexpected error 
com.google.web.bindery.requestfactory.server.UnexpectedException: The RequestContext type org.saferide.shared.service.DAORequestContext did not pass validation 

은 그래서 나는이 서비스에 대한 인터페이스를 생성 RequestContext의 직접적인 자손은 허용됩니까? 아무도 이것에 빠지지 않았 니?

답변

1

http://code.google.com/p/google-web-toolkit/issues/detail?id=5807 및 관련 http://code.google.com/p/google-web-toolkit/issues/detail?id=6234http://code.google.com/p/google-web-toolkit/issues/detail?id=6035

정말 당신이 사용하고 GWT의 버전에 따라 달라 여전히 개선되고있어를 참조하십시오. 출시 될 때 GWT 2.4를 사용하는 것이 더 좋습니다 (런타임에 컴파일 타임에 "유효성 검사"가 수행되는 곳)

+0

굉장합니다. 감사. – squinlan

관련 문제