register

fun register(annotatedClasses: Array<Class<out Any>>)

Register one or more annotated classes to be processed. Note that refresh must be called in order for the context to fully process the new class.

Calls to #register are idempotent; adding the same annotated class more than once has no additional effect.

Parameters

annotatedClasses

one or more annotated classes, e.g. @Configuration classes

See also