Annotation Type | Description |
---|---|
Exclude |
Supported usages:
@Exclude
@Exclude(ifProjectStage=Production.class)
@Exclude(exceptIfProjectStage=UnitTest.class)
@Exclude(onExpression="myProperty==myValue")
@Exclude(onExpression="[my custom expression syntax]", interpretedBy=CustomExpressionInterpreter.class)
Examples:
The following bean gets excluded in any case @Exclude public class NoBean {} The following bean gets excluded when the ProjectStage is 'Development' @Exclude(ifProjectStage = ProjectStage.Development.class) public class ProductionBean {} The following bean gets excluded in every case except when then ProjectStage is 'Development' @Exclude(exceptIfProjectStage = ProjectStage.Development.class) public class DevBean {} The following bean gets excluded if the expression evaluates to true, which means there is a configured property called 'myProperty' with the value 'myValue' @Exclude(onExpression="myProperty==myValue") public class ProductionBean {} The following bean gets excluded if the expression evaluates to true @Exclude(onExpression="[my custom expression syntax]", interpretedBy=CustomExpressionInterpreter.class) public class ProductionBean {} |
Copyright © 2020 The Apache Software Foundation. All rights reserved.