update the version of ja-netfilter
Signed-off-by: pengzhile <pengzhile@gmail.com>
This commit is contained in:
parent
eafbb495e9
commit
ad2708e186
2
pom.xml
2
pom.xml
@ -68,7 +68,7 @@
|
||||
<dependency>
|
||||
<groupId>com.ja-netfilter</groupId>
|
||||
<artifactId>ja-netfilter</artifactId>
|
||||
<version>2.3.2</version>
|
||||
<version>2022.1.0</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
@ -3,6 +3,8 @@ package my.sample.plugin;
|
||||
import com.janetfilter.core.commons.DebugInfo;
|
||||
import com.janetfilter.core.plugin.MyTransformer;
|
||||
|
||||
import java.security.ProtectionDomain;
|
||||
|
||||
public class ManageTransformer implements MyTransformer {
|
||||
@Override
|
||||
public String getHookClassName() {
|
||||
@ -15,7 +17,7 @@ public class ManageTransformer implements MyTransformer {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void before(String className, byte[] classBytes) throws Exception {
|
||||
public void before(ClassLoader loader, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, String className, byte[] classBytes) throws Exception {
|
||||
DebugInfo.debug("before transform: " + className);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user