Skip to content

layer extension helpers #5

Description

@LizAinslie

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions