AutoInitialize

annotation class AutoInitialize(val priority: Int = defaultPriority)(source)

Marks the given objects as being initializable.

This will instruct Auto Dagger to provide the object as an Initializable which allows you to use AutoDaggerInitializer to later initialize the annotated objects.

If the object implements the Initializable interface then it will be created when AutoDaggerInitializer is injected and Initializable.initialize will be called when AutoDaggerInitializer.initialize is called.

Otherwise, the object is only created when AutoDaggerInitializer.initialize is called.

Since

1.0.0

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The priority of the object which determines initialization order. Objects with a higher priority are initialized first. If two initializables have the same priority then they are initialized in an undefined order. The default priority is 1.