The @Disabled annotation means that the member cannot be used in any instance of the class.
For example:
public class Customer {
@Disabled()
public void assessCreditWorthiness() { ... }
@Disabled
public int getInitialCreditRating(){ ... }
public void setInitialCreditRating(int initialCreditRating) { ... }
}
Note that disabled properties may have a public setter method (indeed, JPA object stores will
require a setter of some sort), but the @Disabled is applied to the getter method only. If an
action is marked as @Disabled, it will be shown on the user interface but cannot ever be
invoked. One possible reason to do this is during prototyping, to indicate an action that is still to
be developed. If a method is intended for programmatic use, but not intended ever to be invoked
directly by a user, then it should be marked as @Hidden instead.