Skip to content

Commit b4fb94c

Browse files
committed
提交Matrix AOP
1 parent b875af2 commit b4fb94c

27 files changed

+1120
-2
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Declare files that will always have UNIX line endings on checkout.
2+
*.sh text eol=lf

.gitignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
*.class
2+
.classpath
3+
# Mobile Tools for Java (J2ME)
4+
.mtj.tmp/
5+
6+
*.class
7+
*.classpath
8+
*.project
9+
*.springBeans
10+
log/
11+
test-output/
12+
13+
# Package Files #
14+
*.jar
15+
*.war
16+
*.ear
17+
*.swp
18+
*.log
19+
# nodejs local modules
20+
.tags*
21+
.idea/
22+
*.iml
23+
.gradle/
24+
.settings/
25+
target/
26+
hs_err_pid*
27+

COPYRIGHT

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Nepxion Matrix AOP
2+
Copyright 1999-2017 The Nepxion Studio
3+
4+
This product includes software developed at
5+
The Nepxion Studio (https://github.com/Nepxion/).

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright {yyyy} {name of copyright owner}
189+
Copyright 1999-2017 The Nepxion Studio
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,14 @@
1-
# Matrix
1+
# Matrix AOP
2+
3+
## 介绍
4+
5+
基于Spring AOP AutoProxy机制定制,可以轻松快速实现对接口或者类的代理
6+
实现功能如下:
7+
1)实现接口走Spring代理,类走CGLIB代理
8+
2)实现同一进程中,可以接口代理和类代理同存
9+
3)实现对类或者接口名上注解Annotation,方法上注解Annotation的快速扫描,并开放处理接口供业务端实现
10+
4)实现“只扫描不代理”,“既扫描又代理”
11+
代理支持“只代理类或者接口名上注解”、“只代理方法上的注解”、“全部代理”三种模式
12+
扫描支持“只扫描类或者接口名上注解”、“只扫描方法上的注解”、“全部扫描”三种模式
13+
5)实现“代理和扫描多个注解“
14+
6)实现“支持多个切面类Interceptor做调用拦截”

pom.xml

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<groupId>nepxion</groupId>
5+
<artifactId>matrix</artifactId>
6+
<name>Nepxion Matrix</name>
7+
<packaging>jar</packaging>
8+
<modelVersion>4.0.0</modelVersion>
9+
<version>1.0.0</version>
10+
<url>https://github.com/Nepxion/</url>
11+
12+
<properties>
13+
<commons.lang3.version>3.4</commons.lang3.version>
14+
<spring.version>4.2.7.RELEASE</spring.version>
15+
<spring.boot.version>1.3.7.RELEASE</spring.boot.version>
16+
<disruptor.version>3.3.4</disruptor.version>
17+
<aopalliance.version>1.0</aopalliance.version>
18+
<log4j.version>2.3</log4j.version>
19+
<java.version>1.7</java.version>
20+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
21+
</properties>
22+
23+
<dependencies>
24+
<dependency>
25+
<groupId>org.apache.commons</groupId>
26+
<artifactId>commons-lang3</artifactId>
27+
<version>${commons.lang3.version}</version>
28+
</dependency>
29+
30+
<dependency>
31+
<groupId>org.springframework</groupId>
32+
<artifactId>spring-aop</artifactId>
33+
<version>${spring.version}</version>
34+
</dependency>
35+
36+
<dependency>
37+
<groupId>org.springframework</groupId>
38+
<artifactId>spring-context</artifactId>
39+
<version>${spring.version}</version>
40+
</dependency>
41+
42+
<dependency>
43+
<groupId>org.springframework.boot</groupId>
44+
<artifactId>spring-boot-dependencies</artifactId>
45+
<version>${spring.boot.version}</version>
46+
<type>pom</type>
47+
<scope>import</scope>
48+
</dependency>
49+
50+
<dependency>
51+
<groupId>org.springframework.boot</groupId>
52+
<artifactId>spring-boot-starter-web</artifactId>
53+
<version>${spring.boot.version}</version>
54+
<exclusions>
55+
<exclusion>
56+
<groupId>org.springframework.boot</groupId>
57+
<artifactId>spring-boot-starter-logging</artifactId>
58+
</exclusion>
59+
<exclusion>
60+
<groupId>log4j</groupId>
61+
<artifactId>log4j</artifactId>
62+
</exclusion>
63+
<exclusion>
64+
<groupId>org.slf4j</groupId>
65+
<artifactId>slf4j-api</artifactId>
66+
</exclusion>
67+
</exclusions>
68+
</dependency>
69+
70+
<dependency>
71+
<groupId>aopalliance</groupId>
72+
<artifactId>aopalliance</artifactId>
73+
<version>${aopalliance.version}</version>
74+
</dependency>
75+
76+
<dependency>
77+
<groupId>com.lmax</groupId>
78+
<artifactId>disruptor</artifactId>
79+
<version>${disruptor.version}</version>
80+
</dependency>
81+
82+
<dependency>
83+
<groupId>org.apache.logging.log4j</groupId>
84+
<artifactId>log4j-core</artifactId>
85+
<version>${log4j.version}</version>
86+
</dependency>
87+
88+
<dependency>
89+
<groupId>org.apache.logging.log4j</groupId>
90+
<artifactId>log4j-1.2-api</artifactId>
91+
<version>${log4j.version}</version>
92+
</dependency>
93+
94+
<dependency>
95+
<groupId>org.apache.logging.log4j</groupId>
96+
<artifactId>log4j-slf4j-impl</artifactId>
97+
<version>${log4j.version}</version>
98+
</dependency>
99+
100+
<dependency>
101+
<groupId>org.apache.logging.log4j</groupId>
102+
<artifactId>log4j-jcl</artifactId>
103+
<version>${log4j.version}</version>
104+
</dependency>
105+
106+
<dependency>
107+
<groupId>org.apache.logging.log4j</groupId>
108+
<artifactId>log4j-jul</artifactId>
109+
<version>${log4j.version}</version>
110+
</dependency>
111+
112+
<dependency>
113+
<groupId>org.apache.logging.log4j</groupId>
114+
<artifactId>log4j-web</artifactId>
115+
<version>${log4j.version}</version>
116+
</dependency>
117+
118+
</dependencies>
119+
120+
<build>
121+
<plugins>
122+
<plugin>
123+
<groupId>org.apache.maven.plugins</groupId>
124+
<artifactId>maven-compiler-plugin</artifactId>
125+
<configuration>
126+
<encoding>${project.build.sourceEncoding}</encoding>
127+
<source>${java.version}</source>
128+
<target>${java.version}</target>
129+
</configuration>
130+
</plugin>
131+
</plugins>
132+
</build>
133+
</project>

0 commit comments

Comments
 (0)