Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

layer extension helpers #5

Open
LizAinslie opened this issue Oct 30, 2024 · 0 comments
Open

layer extension helpers #5

LizAinslie opened this issue Oct 30, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers package:kraft-core

Comments

@LizAinslie
Copy link
Contributor

create a LayerProperty delegate interface and a few OOTB behaviors

default behavior should be lazy. we only want to instantiate values on the scope when we need them

example usages:

// where TLayer : ApplicationLater<TLayer>
var TLayer.var1 by LayerProperty {
  // this block is TLayer.() -> TProperty
  "some variable"
}

var TLayer.someClass by LayerProperty.ServiceLoader<SomeClass> {
  // an optional setup block, running as SomeClass.() -> Unit
}

// etc

i'll add to this as i think of new OOTB behaviors i want to include and will only close the issue after that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers package:kraft-core
Projects
None yet
Development

No branches or pull requests

1 participant