Package io.quarkus.arc
Class ActiveResult
java.lang.Object
io.quarkus.arc.ActiveResult
-
Method Summary
Modifier and TypeMethodDescriptionstatic ActiveResultactive()The synthetic bean in question is active.static ActiveResultThe synthetic bean is question is inactive for givenreason.static ActiveResultinactive(String reason, ActiveResult cause) The synthetic bean is question is inactive for givenreason.Returns the cause of why the synthetic bean is not active.Returns the reason why the synthetic bean is not active.booleanvalue()Returns whether the synthetic bean in question is active.
-
Method Details
-
active
The synthetic bean in question is active.- Returns:
- the active result
-
inactive
The synthetic bean is question is inactive for givenreason.- Parameters:
reason- the reason why the synthetic bean is inactive; must not benull- Returns:
- the inactive result
-
inactive
The synthetic bean is question is inactive for givenreason. The givencauseis anActiveResultfor an underlying bean that is inactive and causes this bean to also become inactive.- Parameters:
reason- the reason why the synthetic bean is inactive; must not benullcause- the cause why the synthetic bean is inactive; may benull, but when it is not, it must be inactive as well- Returns:
- the inactive result with a cause
-
value
public boolean value()Returns whether the synthetic bean in question is active.- Returns:
- whether the synthetic bean in question is active
-
inactiveReason
Returns the reason why the synthetic bean is not active. Returnsnullonly if the synthetic bean is active.- Returns:
- the reason why the synthetic bean is not active
-
inactiveCause
Returns the cause of why the synthetic bean is not active.- Returns:
- the cause of why the synthetic bean is not active; may be
null
-