Skip to content

Commit 821b41c

Browse files
committed
Polishing
1 parent c70692f commit 821b41c

File tree

5 files changed

+45
-17
lines changed

5 files changed

+45
-17
lines changed

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
<groupId>org.aspectj</groupId>
8686
<artifactId>aspectjrt</artifactId>
8787
<version>1.8.5</version>
88+
<scope>provided</scope>
8889
</dependency>
8990
</dependencies>
9091

src/main/java/org/audit4j/integration/spring/AuditAdvice.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
2-
* Copyright 2014 Janith Bandara, This source is a part of Audit4j -
3-
* An open-source audit platform for Enterprise java platform.
4-
* http://mechanizedspace.com/audit4j
2+
* Copyright (c) 2014-2015 Janith Bandara, This source is a part of
3+
* Audit4j - An open source auditing framework.
54
* http://audit4j.org
65
*
76
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -55,12 +54,12 @@
5554
*/
5655
public class AuditAdvice implements MethodBeforeAdvice {
5756

58-
/*
59-
* (non-Javadoc)
57+
58+
/**
59+
* {@inheritDoc}
6060
*
61-
* @see
62-
* org.springframework.aop.MethodBeforeAdvice#before(java.lang.reflect.Method
63-
* , java.lang.Object[], java.lang.Object)
61+
* @see org.springframework.aop.MethodBeforeAdvice#before(java.lang.reflect.Method, java.lang.Object[], java.lang.Object)
62+
*
6463
*/
6564
@Override
6665
public void before(final Method method, final Object[] params, final Object arg2) throws Throwable {

src/main/java/org/audit4j/integration/spring/AuditAspect.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
* Copyright (c) 2014-2015 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.integration.spring;
220

321
import java.lang.reflect.Method;

src/main/java/org/audit4j/integration/spring/AuditAspectOld.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
package org.audit4j.integration.spring;
2-
31
/*
42
* Copyright (c) 2014-2015 Janith Bandara, This source is a part of
53
* Audit4j - An open source auditing framework.
@@ -18,6 +16,8 @@
1816
* limitations under the License.
1917
*/
2018

19+
package org.audit4j.integration.spring;
20+
2121
import java.lang.reflect.Method;
2222

2323
import org.aspectj.lang.JoinPoint;
@@ -53,12 +53,14 @@ public class AuditAspectOld {
5353

5454
/**
5555
* Audit.
56-
*
57-
* @param jointPoint the pjp
5856
*
59-
* @throws Throwable the throwable
57+
* @param jointPoint
58+
* the pjp
59+
*
60+
* @throws Throwable
61+
* the throwable
6062
*/
61-
public void audit (final JoinPoint jointPoint) throws Throwable {
63+
public void audit(final JoinPoint jointPoint) throws Throwable {
6264
MethodSignature methodSignature = (MethodSignature) jointPoint.getSignature();
6365
Method method = methodSignature.getMethod();
6466
AuditManager.getInstance().audit(jointPoint.getTarget().getClass(), method, jointPoint.getArgs());

src/main/java/org/audit4j/integration/spring/SpringAudit4jConfig.java

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014 Janith Bandara, This source is a part of
2+
* Copyright (c) 2014-2015 Janith Bandara, This source is a part of
33
* Audit4j - An open source auditing framework.
44
* http://audit4j.org
55
*
@@ -51,8 +51,12 @@ public class SpringAudit4jConfig implements InitializingBean, DisposableBean {
5151
/** The options. */
5252
private String options;
5353

54-
/* (non-Javadoc)
54+
55+
/**
56+
* {@inheritDoc}
57+
*
5558
* @see org.springframework.beans.factory.InitializingBean#afterPropertiesSet()
59+
*
5660
*/
5761
@Override
5862
public void afterPropertiesSet() throws Exception {
@@ -65,8 +69,12 @@ public void afterPropertiesSet() throws Exception {
6569
AuditManager.startWithConfiguration(configuration);
6670
}
6771

68-
/* (non-Javadoc)
72+
73+
/**
74+
* {@inheritDoc}
75+
*
6976
* @see org.springframework.beans.factory.DisposableBean#destroy()
77+
*
7078
*/
7179
@Override
7280
public void destroy() throws Exception {

0 commit comments

Comments
 (0)