Skip to content

HREF support from a controller member that generated a route #9

@apatrida

Description

@apatrida

Given a reference "MyClass::someMethod" that is a bound controller method, return the internal and external URL HREF. This can be done now given a controller that adds methods in the form:

val getSomeThing = fun MyContext.(param: String): MyObject { ... } 

Since Kotlin allow that reference, and the binder already supports binding to it. Just need to remember the information from the route so it can be looked up again.

The other form:

fun MyContext.getSomeThing(param: String): MyObject { ... }

Cannot yet work because Kotlin doesn't allow reference "MyClass::getSomeThing" in that form (It is both an extension function and a member function). Hopefully in M13, KT-8835 will be resolved allowing this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions