I answered my own question ,... although I don't l...
# spring
s
I answered my own question ,... although I don't like the answer because it introduces a spring annotation (maybe there is a better one)?
Copy code
class Component(private val required:Required) {
  @Autowired(required = false) private var optional: NotRequired? = null
}