@Target(value=TYPE) @Retention(value=RUNTIME) public @interface EagerSingleton
EagerSingleton
annotation is used to mark a Singleton
class as being needed to be eagerly registered by a Module
.
Classes marked with this annotation should also be Singleton
. They
will be discovered on the classpath and then
ScopedBindingBuilder.asEagerSingleton()
will be invoked on them.Copyright © 2022 Apache Software Foundation. All rights reserved.