Module io.inverno.core.annotation
Package io.inverno.core.annotation
Annotation Interface Overridable
Used in conjunction with @Bean
to indicate an overridable bean.
An overridable bean is a regular module or wrapper bean that can be overridden within a module by an instance provided in a corresponding optional socket bean automatically exposed on the module. When the socket is resolved and an instance is provided, it will replace the instance that would have normally been instantiated.
@Overridable @Bean
public class OverridableBean implements @Provide Runnable {
...
}
- Since:
- 1.1
- Author:
- Jeremy Kuhn
- See Also: