Skip to content

Commit 189797f

Browse files
committed
a
1 parent 43d3ab2 commit 189797f

6 files changed

Lines changed: 12 additions & 13 deletions

File tree

modules/packed/src/main/java/app/packed/concurrent/ThreadNamespaceConfiguration.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
// Fyldt med Thread factories/pools
2424
// Hvad med extensions??? Vi vil gerne kunne configure deres.
2525
// Maaske deler vi en enkelt. Maaske har vi noget hierrakisk hvor vi nedarver settings
26-
public final class ThreadNamespaceConfiguration {
26+
final class ThreadNamespaceConfiguration {
2727

2828
// public DaemonOperationConfiguration addDaemon(Consumer<DaemonContext> action) {
2929
// throw new UnsupportedOperationException();
@@ -57,8 +57,7 @@ public final class ThreadNamespaceConfiguration {
5757
}
5858
//
5959

60-
//// Hvad hvis vi har flere annoteringer??? Vi kan vel kun have en?
61-
//// Den giver ikke super mening..
60+
//// Hvad hvis vi har flere annoteringer??? Vi kan vel kun have en? Den giver ikke super mening..
6261
//public DaemonOperationConfiguration addDaemonApplication(Assembly assembly, Wirelet... wirelets) {
6362
// throw new UnsupportedOperationException();
6463
//}

modules/packed/src/main/java/app/packed/concurrent/ThreadOverviewMirror.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@
2424
* <p>
2525
* A application
2626
*/
27-
// We must have one per extension...
28-
// I mean we have a service namespace per extension.
29-
// So would probably be strange to share one for extensions?
3027
public final class ThreadOverviewMirror extends OverviewMirror<BaseExtension> {
3128

3229
/**

modules/packed/src/main/java/app/packed/extension/OverviewHandle.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public sealed interface OverviewHandle<E extends Extension<E>> permits PackedOve
5252
*/
5353
<T extends OperationMirror> OperationMirror.OfStream<T> operations(Class<T> operationType);
5454

55-
Type type();
55+
Type overviewType();
5656

5757
enum Type {
5858
APPLICATION, NAMESPACE, EXTENSION;

modules/packed/src/main/java/app/packed/extension/OverviewMirror.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,8 @@ protected final OperationMirror.OfStream<OperationMirror> operations() {
8080
protected final <T extends OperationMirror> OperationMirror.OfStream<T> operations(Class<T> operationType) {
8181
return handle.operations(operationType);
8282
}
83+
84+
public final OverviewHandle.Type overviewType() {
85+
return handle.overviewType();
86+
}
8387
}

modules/packed/src/main/java/app/packed/namespace/NamespaceContext.java renamed to modules/packed/src/main/java/app/packed/namespace/NamespaceInfo.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@
2222
/**
2323
*
2424
*/
25-
// Giver denne mening, hvis mn ikke har nogle controller metoder???
26-
// Maaske namespace info er nok
27-
public interface NamespaceContext {
25+
// Was NamespaceController, but we have no controller methods
26+
public interface NamespaceInfo {
2827

2928
/** {@return the component path of the namespace} */
3029
ComponentPath componentPath();

modules/packed/src/main/java/internal/app/packed/component/PackedOverviewHandle.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public OperationMirror.OfStream<OperationMirror> operations() {
151151
}
152152

153153
@Override
154-
public Type type() {
154+
public Type overviewType() {
155155
return Type.APPLICATION;
156156
}
157157
}
@@ -171,7 +171,7 @@ public OperationMirror.OfStream<OperationMirror> operations() {
171171
}
172172

173173
@Override
174-
public Type type() {
174+
public Type overviewType() {
175175
return Type.EXTENSION;
176176
}
177177
}
@@ -191,7 +191,7 @@ public OperationMirror.OfStream<OperationMirror> operations() {
191191
}
192192

193193
@Override
194-
public Type type() {
194+
public Type overviewType() {
195195
return Type.NAMESPACE;
196196
}
197197
}

0 commit comments

Comments
 (0)