1 package com.atlassian.plugin;
2
3 /**
4 * A named boolean for specifying whether to allow reference installation of plugins.
5 *
6 * @since 4.0.0
7 */
8 public enum ReferenceMode {
9 /**
10 * {@link ReferenceMode#allowsReference} returns false.
11 */
12 FORBID_REFERENCE(false),
13
14 /**
15 * {@link ReferenceMode#allowsReference} returns true.
16 */
17 PERMIT_REFERENCE(true);
18
19 private boolean allowsReference;
20
21 ReferenceMode(boolean allowsReference) {
22 this.allowsReference = allowsReference;
23 }
24
25 public boolean allowsReference() {
26 return allowsReference;
27 }
28 }