Пример #1
0
 @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<>();
 }
Пример #2
0
 @Inject
 public LocalSshDaoImpl(LocalStorageFactory storageFactory) throws IOException {
   pairs = new ArrayList<>();
   sshStorage = storageFactory.create(FILENAME);
 }