@Inject
 public LocalWorkspaceDaoImpl(LocalStorageFactory factory) throws IOException {
   final Map<Class<?>, Object> adapters =
       ImmutableMap.of(
           Recipe.class, new RecipeTypeAdapter(),
           ProjectConfig.class, new ProjectConfigAdapter());
   this.localStorage = factory.create("workspaces.json", adapters);
   this.workspaces = new HashMap<>();
 }
Beispiel #2
0
 @Inject
 public LocalSshDaoImpl(LocalStorageFactory storageFactory) throws IOException {
   pairs = new ArrayList<>();
   sshStorage = storageFactory.create(FILENAME);
 }