많은 서비스가 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의 직접적인 자손은 허용됩니까? 아무도 이것에 빠지지 않았 니?
굉장합니다. 감사. – squinlan