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 event bus
* @param webOfTrustConnector
* The Web of Trust connector
- * @param context
- * The context to focus on (may be {@code null} to ignore
- * contexts)
*/
@Inject
- public IdentityManager(EventBus eventBus, WebOfTrustConnector webOfTrustConnector, @Named("WebOfTrustContext") String context) {
+ public IdentityManager(EventBus eventBus, WebOfTrustConnector webOfTrustConnector, IdentityLoader identityLoader) {
super("Sone Identity Manager", false);
this.eventBus = eventBus;
this.webOfTrustConnector = webOfTrustConnector;
- this.identityLoader = new IdentityLoader(webOfTrustConnector, fromNullable(context));
+ this.identityLoader = identityLoader;
}
//