コード例 #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
ファイル: LocalSshDaoImpl.java プロジェクト: raphsoft/che
 @Inject
 public LocalSshDaoImpl(LocalStorageFactory storageFactory) throws IOException {
   pairs = new ArrayList<>();
   sshStorage = storageFactory.create(FILENAME);
 }