Example of @Requires(configuration=String)
?
#7248
-
Hello! I've successfully used The docs say:
…but I'm not exactly sure what "configurations" means in this context. I have a stanza like this in my ejectorSeat:
enabled: true …and then: @Context
@Requires(configuration = "ejectorSeat")
public class EjectorSeatSubsystem {
// ...
} …but that doesn't do quite what I'd expect; the requirement fails and the Thanks kindly! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Requiring a configuration refers to a bean configuration. What you need is the following: @Context
@Requires(property = "ejectorSeat.enabled", value = "true")
public class EjectorSeatSubsystem {
// ...
} |
Beta Was this translation helpful? Give feedback.
Requiring a configuration refers to a bean configuration.
What you need is the following: