@Retention(value=RUNTIME) @Target(value=TYPE) @Documented public @interface ManualExportNotAllowed
Property's contained in the annotated class, and inner
classes contained in the class.
Export is not allowed by default, so this is used when a containing class is annotated with
ManualExportAllowed and there is an inner class/interface which should not be exported.
Usage example:
//Allow exports for this class & contained classes
@ManualExportAllowed
public class MyClass {
// Export allowed
static IntProp INT1 = IntProp.builder()
.aliasOut("int1out1").build();
//Inherits 'export allowed' from the containing class
static interface Inner1 {
static StrProp STR1 = StrProp.builder().build();
}
//Block export via the annotation
@ManualExportNotAllowed
static class No { ...Properties in here cannot be exported... }
}
See AndHow#export() for export details and examples.
Copyright © 2022. All rights reserved.