Skip to content

Commit 007aa60

Browse files
committed
wer
a
1 parent a8914af commit 007aa60

File tree

186 files changed

+1324
-736
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

186 files changed

+1324
-736
lines changed

BigTasks.txt

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
2+
-- Clarification
3+
Build - Order
4+
5+
BuildHooks
6+
onClose(), onConfigured();
7+
8+
Extension Ordering, when can they install shit
9+
10+
// Assembly
11+
12+
13+
14+
15+
----- app.packed.application ----
16+
BaseImage.result
17+
ApplicationConfiguration
18+
ApplicationRepository
19+
20+
----- app.packed.build ----
21+
Cleanup hooks
22+
23+
----- app.packed.binding ----
24+
Cleanup bindings
25+
Figure out how binding-handles work
26+
27+
28+
----- app.packed.namespace -----
29+
30+
31+
32+
33+
---- Modules
34+
packed-base
35+
packed-base-devtools <---- Testing
36+
packed-base-devops <---- What went wrong, Observability
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
What rights does a build hook have???
2+
3+
Can it do something then owner of the component cannot???
4+
Meaning can it do something only an extension would normally be able to?
5+
6+
--
7+
I think it must be owned focused
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
In what order is everything build.
2+
3+
4+
Principals
5+
* Must be deterministic
6+
* Must give good error messages
7+
* Must provide an easy way to shutdown
8+
* Must be explainable
9+
10+
11+
Actors
12+
User, Extension, Framework
13+
14+
BuildCodeSource
15+
Assembly, Extension, BuildHook
16+
17+
Lifecycle
18+
Application, Container, Bean, Operation, Namespace, Binding
19+
20+
Other
21+
ComponentHandle, ComponentConfiguration
22+
23+
// onClose, onConfigured
24+
25+
-- Clarification
26+
Build - Order
27+
28+
Component/Extension/Assembly
29+
onClose(), onConfigured();
30+
31+
Extension Ordering, when can they install shit
32+
33+
34+
* When can extensions install stuff
35+
* How are build hooks applied and ordered

architecture/build/order/Givens.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
Extension, ApplicationHandle, ContainerHandle, NamespaceHandle, BeanHandle, OperationHandle
3+
4+
5+
onConfigured() is always executed before onClosed()
6+
7+
operation.onClose() is invoked before bean.onClose()
8+
bean.onClose() is invoked before container.onClose();
9+
10+
container.onClose() is invoked before application.onClose()
11+
namespace.onClose() is invoked before application.onClose()
12+
13+
14+
15+
extension.onClose is invoked after all namespaces that is owns has been shutdown
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Can an operation be added after Bean.OnConfigured?
2+
3+
Jeg tror simpelthen alle hooks er koert nar vi begynder paa det..
4+
5+
Saa er det kun extensions vi skal bekymre os om, og ikke brugeren
6+
7+
Hmm nej

architecture/build/order/Various.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Assembly
2+
3+
beforeAnyBeansAreInstalled
4+
beforeAnyExtensionsAreConfigured

architecture/build/order/ops.txt

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
Operation
2+
NewOperation [OperationBuildHook] <- Before being returned to the extension actually
3+
OnClosing [OperationBuildHook] <- Going to mark it as unconfigureable
4+
OnConfigured [OperationHandle] <- The
5+
OnClosed [OperationHandle]
6+
[ApplicationFinishedBuilding]
7+
Verify [OperationBuildHook] <- Verify is maybe not the best word...
8+
9+
10+
Lifecycle
11+
OperationHandle is created, OperationConfiguration is created
12+
hooks.onNew(Configuration)
13+
14+
operation.onConfigured
15+
hooks.onClosing(Configuration)
16+
handle.onConfigured();
17+
18+
operation.onClose();
19+
20+
hooks.onBuildSuccess
21+
22+
----
23+
Problemet med at tillade at installere operation for beanen efter alle operation.onConfigured.
24+
Er at nu tilfoejer vi en operation for en bean der ikke laengere er configurable...
25+
Det er lidt noget moej, har vi brug for dette?
26+
Tror ikke man kan installere flere operation for en bean efter den er onConfigured
27+
28+
bean.onConfigured
29+
forAllOperations.onConfigured
30+
onConfigured
31+
bean.state=OnConfigured=true <- Can no longer add operations
32+
33+
// Bruger kalder onConfigured() { WebExtension.AddFake() stuff that needs to add operations to all beans}

architecture/namespace/Namespaces.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Overview
2+
3+
A namespace manages 1 or more resources, is an object that trans.
4+
5+
Thread namespaces are not supported by unmanaged applications.
6+
A managed application always has at least 1 thread namespace (owned by the user) in order to support
7+
multiple threaded startup and shutdown.
8+
9+
# Truths
10+
Vi bliver noedt til at supportere shutdown asynchronous,
11+
Ville vaere maerkeligt, hvis man fx kalder .shutdown() indefra en starting metode.
12+
Som saa begynder at koere alt stop koden, mens vi stadig er i start koden
13+
14+
15+
1 Shared ThreadNamespace
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Overview
2+
3+
A Thread namespace manages all threads and thread pools, creation and termination of the threads when an application is shutdown.
4+
5+
Thread namespaces are not supported by unmanaged applications.
6+
A managed application always has at least 1 thread namespace (owned by the user) in order to support
7+
multiple threaded startup and shutdown.
8+
9+
# Truths
10+
Vi bliver noedt til at supportere shutdown asynchronous,
11+
Ville vaere maerkeligt, hvis man fx kalder .shutdown() indefra en starting metode.
12+
Som saa begynder at koere alt stop koden, mens vi stadig er i start koden
13+
14+
15+
1 Shared ThreadNamespace
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Ideen er at vi ikke exposer MethodHandle + ExtensionContext til en extension.
2+
3+
Istedet for for en extension injected en invoker[] i en bean af eget valg.
4+
5+
// Saa vi skal instantiere et array hver gang (StableValue??)
6+
7+
8+
? Hvordan faar dem knyttet Invokeren til en Bean
9+
10+
Man maa angive beanen naar man registere invokeren...
11+
12+
? Skal den vaere i samme lifetime? mhhm nej. Jo, eller ogsaa skal den lave i lifetime i operationen...

0 commit comments

Comments
 (0)