-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Milestone
Description
Currently, it is not easy to create an implementation of, e.g. ProjectionStorage
, which would delegate its operations to another instance of ProjectionStorage
.
The problem is in protected
methods.
package org.example;
// ...
class MyProjectionStorage<I> extends ProjectionStorage<I> {
private final ProjectionStorage<I> delegate;
@Override
protected Optional<EntityRecord> readRecord(I id) {
return delagate.readRecord(id);
// ^
// Compiler error here, cannot access protected method `readRecord`
// outside the Spine package.
}
// ...
}
There are a few methods in ProjectionStorage
and other case-specific storages such as readRecord
, which are declared protected
making it impossible to delegate them.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
📋 Backlog