| 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 in case of project-stage development
@Exclude(ifProjectStage = ProjectStage.Development.class)
public class ProductionBean {}
the following bean gets excluded in every case except of project-stage development
@Exclude(exceptIfProjectStage = ProjectStage.Development.class)
public class DevBean {}
the following bean gets excluded if the expression evaluates to true.
|
Copyright © 2011-2013 The Apache Software Foundation. All Rights Reserved.