File tree Expand file tree Collapse file tree 12 files changed +88
-84
lines changed
src/main/java/org/audit4j/core Expand file tree Collapse file tree 12 files changed +88
-84
lines changed Original file line number Diff line number Diff line change 35
35
*/
36
36
public final class AuditManager implements IAuditManager {
37
37
38
+ /** The audit manager. */
39
+ private static volatile IAuditManager auditManager ;
40
+
38
41
/**
39
42
* Instantiates a new audit manager.
40
43
*/
41
44
private AuditManager () {
42
45
}
43
46
44
- /** The audit manager. */
45
- private static volatile IAuditManager auditManager ;
46
-
47
47
/**
48
48
* Audit.
49
49
*
Original file line number Diff line number Diff line change @@ -64,13 +64,6 @@ public class Configuration implements Serializable {
64
64
/** The jmx configurations. */
65
65
private JMXConfig jmx ;
66
66
67
- /**
68
- * Instantiates a new configuration.
69
- */
70
- public Configuration () {
71
-
72
- }
73
-
74
67
/** Return new static instance.
75
68
*
76
69
* @since 2.3.1
@@ -83,6 +76,13 @@ public Configuration() {
83
76
* */
84
77
public static Configuration DEFAULT = getDefault ();
85
78
79
+ /**
80
+ * Instantiates a new configuration.
81
+ */
82
+ public Configuration () {
83
+
84
+ }
85
+
86
86
/**
87
87
* Gets the default.
88
88
*
Original file line number Diff line number Diff line change @@ -94,6 +94,13 @@ public final class Context {
94
94
95
95
private static AnnotationTransformer annotationTransformer ;
96
96
97
+ /**
98
+ * Private singalton.
99
+ */
100
+ private Context () {
101
+ // Nothing here. Private Constructor
102
+ }
103
+
97
104
/**
98
105
* Initialize the Audit4j instance. This will ensure the single audit4j
99
106
* instance and single Configuration repository load in to the memory.
@@ -459,10 +466,4 @@ public static RunStatus getStatus() {
459
466
return lifeCycle .getStatus ();
460
467
}
461
468
462
- /**
463
- * Private singalton.
464
- */
465
- private Context () {
466
- // Nothing here. Private Constructor
467
- }
468
469
}
Original file line number Diff line number Diff line change @@ -18,6 +18,12 @@ public final class LifeCycleContext {
18
18
/** The instance. */
19
19
private static LifeCycleContext instance ;
20
20
21
+ /**
22
+ * Instantiates a new context life cycle.
23
+ */
24
+ private LifeCycleContext () {
25
+ }
26
+
21
27
/**
22
28
* Gets the status.
23
29
*
@@ -67,12 +73,6 @@ void setStatus(RunStatus status) {
67
73
this .status = status ;
68
74
}
69
75
70
- /**
71
- * Instantiates a new context life cycle.
72
- */
73
- private LifeCycleContext () {
74
- }
75
-
76
76
/**
77
77
* Gets the single instance of ContextLifeCycle.
78
78
*
Original file line number Diff line number Diff line change @@ -51,6 +51,13 @@ public final class PreConfigurationContext {
51
51
/** The Constant preAnnotationFilters. */
52
52
private static final List <AuditAnnotationFilter > preAnnotationFilters = new ArrayList <AuditAnnotationFilter >();
53
53
54
+ /**
55
+ * Instantiates a new registry.
56
+ */
57
+ private PreConfigurationContext () {
58
+ // Private Constructor
59
+ }
60
+
54
61
static {
55
62
ScanAnnotatedCommand scanAnnotated = new ScanAnnotatedCommand ();
56
63
availableCommands .add (scanAnnotated .getCommand ());
@@ -132,11 +139,4 @@ public static List<AuditAnnotationFilter> getPreannotationfilters() {
132
139
return preAnnotationFilters ;
133
140
}
134
141
135
- /**
136
- * Instantiates a new registry.
137
- */
138
- private PreConfigurationContext () {
139
- // Private Constructor
140
- }
141
-
142
142
}
Original file line number Diff line number Diff line change @@ -39,7 +39,14 @@ public final class CommandProcessor {
39
39
40
40
/** The instance. */
41
41
private static CommandProcessor instance ;
42
-
42
+
43
+ /**
44
+ * Instantiates a new command processor.
45
+ */
46
+ private CommandProcessor (){
47
+ //Private Constructor.
48
+ }
49
+
43
50
/**
44
51
* Process.
45
52
*
@@ -82,13 +89,6 @@ public void process(String commandText) {
82
89
process (commands );
83
90
}
84
91
85
- /**
86
- * Instantiates a new command processor.
87
- */
88
- private CommandProcessor (){
89
- //Private Constructor.
90
- }
91
-
92
92
/**
93
93
* Gets the single instance of CommandProcessor.
94
94
*
Original file line number Diff line number Diff line change @@ -14,15 +14,6 @@ public enum ArchiveType {
14
14
/** The name. */
15
15
private String name ;
16
16
17
- /**
18
- * Gets the name.
19
- *
20
- * @return the name
21
- */
22
- public String getName () {
23
- return name ;
24
- }
25
-
26
17
/**
27
18
* Instantiates a new archive type.
28
19
*
@@ -32,4 +23,14 @@ public String getName() {
32
23
private ArchiveType (String name ) {
33
24
this .name = name ;
34
25
}
26
+
27
+ /**
28
+ * Gets the name.
29
+ *
30
+ * @return the name
31
+ */
32
+ public String getName () {
33
+ return name ;
34
+ }
35
+
35
36
}
Original file line number Diff line number Diff line change @@ -14,20 +14,21 @@ public enum Compression {
14
14
private String extention ;
15
15
16
16
/**
17
- * Gets the extention .
17
+ * Instantiates a new compression type .
18
18
*
19
- * @return the extention
19
+ * @param extention the extention
20
20
*/
21
- public String getExtention ( ) {
22
- return extention ;
21
+ Compression ( String extention ) {
22
+ this . extention = extention ;
23
23
}
24
24
25
25
/**
26
- * Instantiates a new compression type .
26
+ * Gets the extention .
27
27
*
28
- * @param extention the extention
28
+ * @return the extention
29
29
*/
30
- Compression ( String extention ) {
31
- this . extention = extention ;
30
+ public String getExtention ( ) {
31
+ return extention ;
32
32
}
33
+
33
34
}
Original file line number Diff line number Diff line change 17
17
*/
18
18
public abstract class TaskUtils {
19
19
20
- /**
21
- * private constructor to avoid instantiation of this class
22
- */
23
- private TaskUtils (){
24
-
25
- }
26
-
27
20
/**
28
21
* An ErrorHandler strategy that will log the Exception but perform no
29
22
* further handling. This will suppress the error so that subsequent
@@ -37,6 +30,13 @@ private TaskUtils(){
37
30
*/
38
31
public static final ErrorHandler LOG_AND_PROPAGATE_ERROR_HANDLER = new PropagatingErrorHandler ();
39
32
33
+ /**
34
+ * private constructor to avoid instantiation of this class
35
+ */
36
+ private TaskUtils (){
37
+
38
+ }
39
+
40
40
/**
41
41
* Decorate the task for error handling. If the provided
42
42
*
Original file line number Diff line number Diff line change 27
27
*/
28
28
public class Base64Coder {
29
29
30
- /**
31
- * Instantiates a new base64 coder.
32
- */
33
- private Base64Coder () {
34
-
35
- }
36
-
37
30
/** Holds The Constant LINE_SEPARATOR Value. */
38
31
public static final String LINE_SEPARATOR = "line.separator" ;
39
32
@@ -101,6 +94,13 @@ private Base64Coder() {
101
94
}
102
95
}
103
96
97
+ /**
98
+ * Instantiates a new base64 coder.
99
+ */
100
+ private Base64Coder () {
101
+
102
+ }
103
+
104
104
/**
105
105
* Encode string.
106
106
*
You can’t perform that action at this time.
0 commit comments