projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add custom context type for dependency injection.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
freenet
/
wot
/
IdentityManager.java
diff --git
a/src/main/java/net/pterodactylus/sone/freenet/wot/IdentityManager.java
b/src/main/java/net/pterodactylus/sone/freenet/wot/IdentityManager.java
index
e89c667
..
810e054
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/freenet/wot/IdentityManager.java
+++ b/
src/main/java/net/pterodactylus/sone/freenet/wot/IdentityManager.java
@@
-33,7
+33,6
@@
import com.google.common.collect.Multimap;
import com.google.common.collect.Sets;
import com.google.common.eventbus.EventBus;
import com.google.inject.Inject;
import com.google.common.collect.Sets;
import com.google.common.eventbus.EventBus;
import com.google.inject.Inject;
-import com.google.inject.name.Named;
/**
* The identity manager takes care of loading and storing identities, their
/**
* The identity manager takes care of loading and storing identities, their
@@
-74,11
+73,11
@@
public class IdentityManager extends AbstractService {
* contexts)
*/
@Inject
* contexts)
*/
@Inject
- public IdentityManager(EventBus eventBus, WebOfTrustConnector webOfTrustConnector,
@Named("WebOfTrustContext") String
context) {
+ public IdentityManager(EventBus eventBus, WebOfTrustConnector webOfTrustConnector,
Context
context) {
super("Sone Identity Manager", false);
this.eventBus = eventBus;
this.webOfTrustConnector = webOfTrustConnector;
super("Sone Identity Manager", false);
this.eventBus = eventBus;
this.webOfTrustConnector = webOfTrustConnector;
- this.identityLoader = new IdentityLoader(webOfTrustConnector, fromNullable(context));
+ this.identityLoader = new IdentityLoader(webOfTrustConnector, fromNullable(context
.getContext()
));
}
//
}
//