klum-dsl / klum-ast

Turn your models into super models
https://github.com/klum-dsl/klum-ast/wiki
MIT License
3 stars 0 forks source link

Allow generic converters #183

Open pauxus opened 5 years ago

pauxus commented 5 years ago

something like:

static <T extends Database> T fromType(Class<T> type, String name, String url) {
  type.create(name) {
     url(url)
  }
}