Can't bind IStorage2UriMapper [message #902988] |
Tue, 21 August 2012 10:27  |
Eclipse User |
|
|
|
I can't bind custom IStorage2UriMapper in MyDslUiModule.
I am trying to do the following in MyDslUiModule:
public Class<? extends IStorage2UriMapper> bindIStorage2UriMapper() {
return Storage2UriMapperMyDslImpl.class;
}
or this:
public void configureIStorage2UriMapper(Binder binder) {
binder.bind(IStorage2UriMapper.class)
.annotatedWith(Names.named("Storage2UriMapperMyDslImpl"))
.to(Storage2UriMapperMyDslImpl.class);
}
and also the following:
public Provider<IStorage2UriMapper> provideIStorage2UriMapper() {
return Access
.<IStorage2UriMapper> provider(Storage2UriMapperMyDslImpl.class);
}
Unfortunately, the above doesn't work. Moreover, when I checked what interface is binded, I receive Storage2UriMapperJavaImpl.
How can I bind my Storage2UriMapperMyDslImpl?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04176 seconds