Skip to content

Commit 281153e

Browse files
committed
Polishing
1 parent 8969023 commit 281153e

21 files changed

+294
-27
lines changed

src/main/java/org/audit4j/core/AuditManager.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ public boolean audit(AuditEvent event) {
6767
* the args
6868
* @return true, if successful
6969
*
70-
* TODO FIXME not purely asynchronous. should moved to the logic in
71-
* to asynchronous stream.
7270
*/
7371
public boolean audit(Class<?> clazz, Method method, Object[] args) {
7472
return audit(new AnnotationAuditEvent(clazz, method, args));

src/main/java/org/audit4j/core/DefaultAnnotationTransformer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import org.audit4j.core.dto.Field;
3333

3434
/**
35-
* The Class AnnotationTransformer use to transform annotation information in to
35+
* The Class DefaultAnnotationTransformer use to transform annotation information in to
3636
* simple audit event.
3737
*
3838
* @author <a href="mailto:[email protected]">Janith Bandara</a>

src/main/java/org/audit4j/core/DummyMetaData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
package org.audit4j.core;
2020

2121
/**
22-
* The Class DummyMetaData.
22+
* The Class DummyMetaData is used as a default metadata class.
2323
*
2424
* @author <a href="mailto:[email protected]">Janith Bandara</a>
2525
*

src/main/java/org/audit4j/core/annotation/Audit.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,14 @@
4848
*
4949
* @return the string
5050
*/
51-
@Nonbinding
51+
@Nonbinding
5252
public String action() default "action";
5353

5454
/**
5555
* Selection.
5656
*
5757
* @return the string
58-
* @deprecated : this attribute is no longer using.
59-
*
60-
* Selection.
58+
* @deprecated : this attribute is no longer using.
6159
*/
6260
@Deprecated
6361
@Nonbinding
@@ -67,15 +65,15 @@
6765
* Tag.
6866
*
6967
* @return the string
70-
* @deprecated see repository for more information.
71-
* Repository.
68+
* @deprecated see repository for more information. Repository.
7269
*/
7370
@Deprecated
7471
@Nonbinding
7572
public String tag() default "default";
76-
73+
7774
/**
78-
* Repository. This attribute using to define the repository where audit log located.
75+
* Repository. This attribute using to define the repository where audit log
76+
* located.
7977
*
8078
* @return the string
8179
*/

src/main/java/org/audit4j/core/annotation/SelectionType.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,14 @@
2222
* The Enum SelectionType.
2323
*
2424
* @author <a href="mailto:[email protected]">Janith Bandara</a>
25+
*
26+
* This enum is no longer using
2527
*/
28+
@Deprecated
2629
public enum SelectionType {
2730

2831
/** The all. */
29-
ALL, /** The marked. */
32+
ALL,
33+
/** The marked. */
3034
MARKED;
3135
}

src/main/java/org/audit4j/core/command/impl/MetadataCommand.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
* Copyright (c) 2014-2016 Janith Bandara, This source is a part of
3+
* Audit4j - An open source auditing framework.
4+
* http://audit4j.org
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
119
package org.audit4j.core.command.impl;
220

321
import java.util.List;

src/main/java/org/audit4j/core/command/impl/ObjectSerializerCommand.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
* Copyright (c) 2014-2016 Janith Bandara, This source is a part of
3+
* Audit4j - An open source auditing framework.
4+
* http://audit4j.org
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
119
package org.audit4j.core.command.impl;
220

321
import org.audit4j.core.ObjectSerializer;

src/main/java/org/audit4j/core/jmx/JMXConfig.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
* Copyright (c) 2014-2016 Janith Bandara, This source is a part of
3+
* Audit4j - An open source auditing framework.
4+
* http://audit4j.org
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
119
package org.audit4j.core.jmx;
220

321
/**

src/main/java/org/audit4j/core/jmx/JMXUtils.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
* Copyright (c) 2014-2016 Janith Bandara, This source is a part of
3+
* Audit4j - An open source auditing framework.
4+
* http://audit4j.org
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
119
package org.audit4j.core.jmx;
220

321
import javax.management.ObjectName;

src/main/java/org/audit4j/core/jmx/MBeanAgent.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
* Copyright (c) 2014-2016 Janith Bandara, This source is a part of
3+
* Audit4j - An open source auditing framework.
4+
* http://audit4j.org
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
119
package org.audit4j.core.jmx;
220

321
import java.lang.management.ManagementFactory;

0 commit comments

Comments
 (0)