merge origin/master

This commit is contained in:
haoeliu@foxmail.com 2022-11-15 11:51:27 +08:00
commit 5fd1c684aa
4 changed files with 23 additions and 7 deletions

View File

@ -39,21 +39,19 @@ dependencies {
api 'berkeleydb:je:3.2.76' api 'berkeleydb:je:3.2.76'
// api 'com.fifesoft:rsyntaxtextarea:3.1.3' // api 'com.fifesoft:rsyntaxtextarea:3.1.3'
api 'commons-io:commons-io:2.11.0' api 'commons-io:commons-io:2.11.0'
api 'io.netty:netty-all:4.1.72.Final' api 'io.netty:netty-all:4.1.77.Final'
api 'org.antlr:antlr4:4.9.2' api 'org.antlr:antlr4:4.9.2'
api 'commons-codec:commons-codec:1.5' api 'commons-codec:commons-codec:1.5'
api 'org.apache.logging.log4j:log4j-core:2.17.2' api 'org.apache.logging.log4j:log4j-core:2.17.2'
api 'org.apache.logging.log4j:log4j-api:2.17.2' api 'org.apache.logging.log4j:log4j-api:2.17.2'
//api 'org.apache.velocity:velocity-engine-core:2.3' //api 'org.apache.velocity:velocity-engine-core:2.3'
api 'org.rocksdb:rocksdbjni:7.3.1' api 'org.rocksdb:rocksdbjni:7.3.1'
// api fileTree(dir: 'lib', include: '*.jar') // api fileTree(dir: 'lib', include: '*.jar')
testImplementation 'junit:junit:4.13.2' testImplementation 'junit:junit:4.13.2'
implementation 'org.bdware.doip:doip-audit-tool:1.1.2' implementation 'org.bdware.doip:doip-audit-tool:1.1.2'
} }
group = "org.bdware.sc" group = "org.bdware.sc"
version = "1.6.5" version = "1.6.3"
tasks.processResources.setDuplicatesStrategy(DuplicatesStrategy.INCLUDE) tasks.processResources.setDuplicatesStrategy(DuplicatesStrategy.INCLUDE)

View File

@ -26,6 +26,10 @@ public class ContractResult {
} }
public enum Status { public enum Status {
Success, Exception, Error, Executing Success, Exception, Error;
public Status merge(Status status) {
if (status == null) status = Error;
return this.ordinal() < status.ordinal() ? status : this;
}
} }
} }

View File

@ -1,8 +1,7 @@
package org.bdware.sc.node; package org.bdware.sc.node;
import org.bdware.sc.JSEngine; import org.bdware.sc.JSEngine;
import org.bdware.sc.bean.ContractRequest;
public interface AnnotationHook { public interface AnnotationHook {
Object handle(ContractRequest input, JSEngine desktopEngine, Object ret); ArgPacks handle(JSEngine desktopEngine, ArgPacks argPacks);
} }

View File

@ -0,0 +1,15 @@
package org.bdware.sc.node;
import org.bdware.sc.bean.ContractRequest;
public class ArgPacks {
public Object ret;
public ContractRequest request;
public Object arg;
public ArgPacks(ContractRequest request, Object arg, Object ret) {
this.request = request;
this.arg = arg;
this.ret = ret;
}
}