Advanced Configs

Sometimes the default parser wont facilitate your needs for a config, Resourceful Config is made in away where you can construct the underlying config yourself. You just need to create a class that implements ResourcefulConfig and then from their implement all other classes you need. An example of this is the official Kotlin DSL .

You can also additionally create custom parsers that others can use by registering a service for ConfigParser this has a priority and as parse method that if returning null will then try the next parser and so on until it either finds a parser that can parse it or until it throws that it couldn't find one.

Last updated