Same storage manager used by lazy resolve session in AnalyzerFacadeForJVM and the rest of the components

This commit is contained in:
Andrey Breslav
2014-01-17 12:29:37 +04:00
parent 1af71c4dbe
commit 8f56283771
8 changed files with 122 additions and 18 deletions
@@ -61,7 +61,7 @@ public class LockBasedStorageManager implements StorageManager {
}
@NotNull
protected <K, V> MemoizedFunctionToNotNull<K, V> createMemoizedFunction(
protected <K, V> MemoizedFunctionToNotNull<K, V> createMemoizedFunction(
@NotNull Function1<? super K, ? extends V> compute,
@NotNull ConcurrentMap<K, Object> map
) {
@@ -374,4 +374,29 @@ public class LockBasedStorageManager implements StorageManager {
return result;
}
}
@Deprecated // Use with care
public class Internals {
@NotNull
public Lock getLock() {
return lock;
}
@NotNull
public <K, V> MemoizedFunctionToNotNull<K, V> createMemoizedFunction(
@NotNull Function1<? super K, ? extends V> compute,
@NotNull ConcurrentMap<K, Object> map
) {
return LockBasedStorageManager.this.createMemoizedFunction(compute, map);
}
@NotNull
public <K, V> MemoizedFunctionToNullable<K, V> createMemoizedFunctionWithNullableValues(
@NotNull Function1<? super K, ? extends V> compute,
@NotNull ConcurrentMap<K, Object> map
) {
return LockBasedStorageManager.this.createMemoizedFunctionWithNullableValues(compute, map);
}
}
}