Skip to content

Conversation

@wolfieboy09
Copy link
Contributor

@wolfieboy09 wolfieboy09 commented Dec 9, 2025

Description

Lot's of bindings are mostly classes, and most times it's just the class name, and so this can simplify it a bit for adding a binding

Example Script

public void registerBindings(BindingRegistry bindings) {
    bindings.add(SomeClassName.class); // This get's registered into kjs as "SomeClassName"
}

@MaxNeedsSnacks
Copy link
Member

I considered doing something like this in the past, but this kind of introduces an antipattern of not naming your bindings properly at all, like for example, a lot of classes will have a "RecipeOutput" class and all of those bindings would then clash

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants