001    package org.nakedobjects.applib.annotation;
002    
003    import java.lang.annotation.ElementType;
004    import java.lang.annotation.Inherited;
005    import java.lang.annotation.Retention;
006    import java.lang.annotation.RetentionPolicy;
007    import java.lang.annotation.Target;
008    
009    
010    /**
011     * Indicates that a property/action is to be always unavailable to the user.
012     */
013    @Inherited
014    @Target( { ElementType.METHOD })
015    @Retention(RetentionPolicy.RUNTIME)
016    public @interface Disabled {
017        When value() default When.ALWAYS;
018    }
019    
020    // Copyright (c) Naked Objects Group Ltd.