Skip to content

Commit c933c2b

Browse files
committed
[hibernate#950] Remove StageImplementor
1 parent 5080d83 commit c933c2b

File tree

2 files changed

+1
-117
lines changed

2 files changed

+1
-117
lines changed

hibernate-reactive-core/src/main/java/org/hibernate/reactive/common/spi/StageImplementor.java

-81
This file was deleted.

hibernate-reactive-core/src/main/java/org/hibernate/reactive/stage/impl/StageSessionFactoryImpl.java

+1-36
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import org.hibernate.internal.SessionCreationOptions;
1818
import org.hibernate.internal.SessionFactoryImpl;
1919
import org.hibernate.reactive.common.spi.Implementor;
20-
import org.hibernate.reactive.common.spi.StageImplementor;
2120
import org.hibernate.reactive.context.Context;
2221
import org.hibernate.reactive.context.impl.BaseKey;
2322
import org.hibernate.reactive.context.impl.MultitenantKey;
@@ -38,7 +37,7 @@
3837
* <p>
3938
* Obtained by calling {@link org.hibernate.SessionFactory#unwrap(Class)}.
4039
*/
41-
public class StageSessionFactoryImpl implements Stage.SessionFactory, Implementor, StageImplementor {
40+
public class StageSessionFactoryImpl implements Stage.SessionFactory, Implementor {
4241

4342
private final SessionFactoryImpl delegate;
4443
private final ReactiveConnectionPool connectionPool;
@@ -73,40 +72,6 @@ public Context getContext() {
7372
return context;
7473
}
7574

76-
@Override
77-
public Stage.Session newSession() {
78-
SessionCreationOptions options = options();
79-
return new StageSessionImpl(
80-
new ReactiveSessionImpl( delegate, options, proxyConnection( options.getTenantIdentifier() ) ),
81-
this
82-
);
83-
}
84-
85-
@Override
86-
public Stage.Session newSession(String tenantId) {
87-
return new StageSessionImpl(
88-
new ReactiveSessionImpl( delegate, options( tenantId ), proxyConnection( tenantId ) ),
89-
this
90-
);
91-
}
92-
93-
@Override
94-
public Stage.StatelessSession newStatelessSession() {
95-
SessionCreationOptions options = options();
96-
return new StageStatelessSessionImpl(
97-
new ReactiveStatelessSessionImpl( delegate, options, proxyConnection( options.getTenantIdentifier() ) ),
98-
this
99-
);
100-
}
101-
102-
@Override
103-
public Stage.StatelessSession newStatelessSession(String tenantId) {
104-
return new StageStatelessSessionImpl(
105-
new ReactiveStatelessSessionImpl( delegate, options( tenantId ), proxyConnection( tenantId ) ),
106-
this
107-
);
108-
}
109-
11075
@Override
11176
public CompletionStage<Stage.Session> openSession() {
11277
SessionCreationOptions options = options();

0 commit comments

Comments
 (0)