Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions common/gradle.lockfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ org.antlr:antlr4-runtime:4.7.2=pmd
org.antlr:antlr4-runtime:4.8-1=checkstyle
org.apache.bcel:bcel:6.5.0=spotbugs
org.apache.commons:commons-lang3:3.12.0=spotbugs
org.apache.commons:commons-lang3:3.14.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.commons:commons-lang3:3.17.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.commons:commons-lang3:3.8.1=pmd
org.apache.commons:commons-text:1.10.0=spotbugs
org.apache.commons:commons-text:1.12.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.commons:commons-text:1.13.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.groovy:groovy-bom:4.0.6=testCompileClasspath,testRuntimeClasspath
org.apache.groovy:groovy:4.0.6=testCompileClasspath,testRuntimeClasspath
org.apache.httpcomponents.client5:httpclient5:5.1.3=spotbugs
Expand Down
5 changes: 3 additions & 2 deletions context/gradle.lockfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ com.google.guava:guava:31.1-jre=compileClasspath,runtimeClasspath,testCompileCla
com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=checkstyle,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
com.google.j2objc:j2objc-annotations:1.3=checkstyle,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
com.puppycrawl.tools:checkstyle:8.29=checkstyle
com.squareup:javapoet:1.13.0=runtimeClasspath,testRuntimeClasspath
commons-beanutils:commons-beanutils:1.9.4=checkstyle
commons-codec:commons-codec:1.15=spotbugs
commons-collections:commons-collections:3.2.2=checkstyle
Expand All @@ -46,10 +47,10 @@ org.antlr:antlr4-runtime:4.7.2=pmd
org.antlr:antlr4-runtime:4.8-1=checkstyle
org.apache.bcel:bcel:6.5.0=spotbugs
org.apache.commons:commons-lang3:3.12.0=spotbugs
org.apache.commons:commons-lang3:3.14.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.commons:commons-lang3:3.17.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.commons:commons-lang3:3.8.1=pmd
org.apache.commons:commons-text:1.10.0=spotbugs
org.apache.commons:commons-text:1.12.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.commons:commons-text:1.13.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.groovy:groovy-bom:4.0.6=testCompileClasspath,testRuntimeClasspath
org.apache.groovy:groovy:4.0.6=testCompileClasspath,testRuntimeClasspath
org.apache.httpcomponents.client5:httpclient5:5.1.3=spotbugs
Expand Down
4 changes: 2 additions & 2 deletions gateway-generator/gradle.lockfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ org.antlr:antlr4-runtime:4.7.2=pmd
org.antlr:antlr4-runtime:4.8-1=checkstyle
org.apache.bcel:bcel:6.5.0=spotbugs
org.apache.commons:commons-lang3:3.12.0=spotbugs
org.apache.commons:commons-lang3:3.14.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.commons:commons-lang3:3.17.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.commons:commons-lang3:3.8.1=pmd
org.apache.commons:commons-text:1.10.0=spotbugs
org.apache.commons:commons-text:1.12.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.commons:commons-text:1.13.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.groovy:groovy-bom:4.0.6=testCompileClasspath,testRuntimeClasspath
org.apache.groovy:groovy:4.0.6=testCompileClasspath,testRuntimeClasspath
org.apache.httpcomponents.client5:httpclient5:5.1.3=spotbugs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@
import com.mx.path.core.common.gateway.GatewayAPI;
import com.mx.path.core.common.lang.Strings;
import com.mx.path.core.common.reflection.Annotations;
import com.mx.path.core.utility.reflection.ClassHelper;
import com.mx.path.gateway.accessor.Accessor;
import com.mx.path.gateway.accessor.AccessorConfiguration;
import com.mx.path.gateway.configuration.AccessorConstructionContext;
import com.mx.path.gateway.configuration.AccessorProxy;
import com.mx.path.gateway.configuration.AccessorProxyMap;
import com.squareup.javapoet.ClassName;
import com.squareup.javapoet.CodeBlock;
import com.squareup.javapoet.FieldSpec;
Expand All @@ -42,7 +46,7 @@ public class AccessorProxyGenerator {
/**
* Build new {@link AccessorProxyGenerator} instance with provided processing environment.
*
* @param processingEnvironment processing environment to interact with {@link Filer} file generation.
q* @param processingEnvironment processing environment to interact with {@link Filer} file generation.
*/
public AccessorProxyGenerator(ProcessingEnvironment processingEnvironment) {
this.filer = processingEnvironment.getFiler();
Expand All @@ -61,7 +65,7 @@ public final CodeBlock generateAll(Class<? extends Accessor> rootAccessor) throw
}
accessorProxyMappings = CodeBlock.builder();
recursiveGenerate(rootAccessor);
accessorProxyMappings.addStatement("$T.freeze()", ClassName.get("com.mx.path.gateway.configuration", "AccessorProxyMap"));
accessorProxyMappings.addStatement("$T.freeze()", ClassHelper.buildClassName(AccessorProxyMap.class));

return accessorProxyMappings.build();
}
Expand All @@ -75,7 +79,7 @@ private void recursiveGenerate(Class<? extends Accessor> klass) throws IOExcepti
TypeSpec.Builder classBuilder = TypeSpec.classBuilder(proxyName)
.addModifiers(Modifier.PUBLIC, Modifier.ABSTRACT)
.superclass(klass)
.addSuperinterface(ClassName.get("com.mx.path.gateway.configuration", "AccessorProxy"))
.addSuperinterface(ClassHelper.buildClassName(AccessorProxy.class))

.addJavadoc(
"Base class for wrapping " + klass.getName() + ".\n"
Expand All @@ -88,11 +92,11 @@ private void recursiveGenerate(Class<? extends Accessor> klass) throws IOExcepti
.addParameter(AccessorConfiguration.class, "configuration")
.addParameter(ParameterizedTypeName.get(ClassName.get(Class.class), WildcardTypeName.subtypeOf(klass)), "accessorClass")
.addStatement("this.setConfiguration(configuration)")
.addStatement("this.accessorConstructionContext = new $T(accessorClass, configuration)", ParameterizedTypeName.get(ClassName.get("com.mx.path.gateway.configuration", "AccessorConstructionContext"), TypeName.get(klass)))
.addStatement("this.accessorConstructionContext = new $T(accessorClass, configuration)", ParameterizedTypeName.get(ClassHelper.buildClassName(AccessorConstructionContext.class), TypeName.get(klass)))
.build())

.addField(
FieldSpec.builder(ParameterizedTypeName.get(ClassName.get("com.mx.path.gateway.configuration", "AccessorConstructionContext"), WildcardTypeName.subtypeOf(klass)), "accessorConstructionContext")
FieldSpec.builder(ParameterizedTypeName.get(ClassHelper.buildClassName(AccessorConstructionContext.class), WildcardTypeName.subtypeOf(klass)), "accessorConstructionContext")
.addModifiers(Modifier.PRIVATE, Modifier.FINAL)
.addAnnotation(ClassName.get("lombok", "Getter"))
.build())
Expand Down Expand Up @@ -233,7 +237,7 @@ private void generateSingletonProxy(String proxyBaseClass, Class<? extends Acces
.build();
javaFile.writeTo(filer);

accessorProxyMappings.addStatement("$T.add(\"singleton\", $T.class, $T.class)", ClassName.get("com.mx.path.gateway.configuration", "AccessorProxyMap"), accessorClass, ClassName.get(packageName, proxyBaseClass + "Singleton"));
accessorProxyMappings.addStatement("$T.add(\"singleton\", $T.class, $T.class)", ClassHelper.buildClassName(AccessorProxyMap.class), accessorClass, ClassName.get(packageName, proxyBaseClass + "Singleton"));
}

private void generatePrototypeProxy(String proxyBaseClass, Class<? extends Accessor> accessorClass) throws IOException {
Expand Down Expand Up @@ -270,7 +274,7 @@ private void generatePrototypeProxy(String proxyBaseClass, Class<? extends Acces
.build();
javaFile.writeTo(filer);

accessorProxyMappings.addStatement("$T.add(\"prototype\", $T.class, $T.class)", ClassName.get("com.mx.path.gateway.configuration", "AccessorProxyMap"), accessorClass, ClassName.get(packageName, proxyBaseClass + "Prototype"));
accessorProxyMappings.addStatement("$T.add(\"prototype\", $T.class, $T.class)", ClassHelper.buildClassName(AccessorProxyMap.class), accessorClass, ClassName.get(packageName, proxyBaseClass + "Prototype"));
}

private String calculatePackageName(Class<? extends Accessor> accessorClass) {
Expand Down
5 changes: 3 additions & 2 deletions gateway/gradle.lockfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ com.google.guava:guava:31.1-jre=compileClasspath,runtimeClasspath,testCompileCla
com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=checkstyle,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
com.google.j2objc:j2objc-annotations:1.3=checkstyle,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
com.puppycrawl.tools:checkstyle:8.29=checkstyle
com.squareup:javapoet:1.13.0=runtimeClasspath,testRuntimeClasspath
com.sun.activation:jakarta.activation:1.2.2=runtimeClasspath,testRuntimeClasspath
com.sun.istack:istack-commons-runtime:3.0.12=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
com.sun.xml.bind:jaxb-impl:2.3.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
Expand Down Expand Up @@ -56,10 +57,10 @@ org.antlr:antlr4-runtime:4.7.2=pmd
org.antlr:antlr4-runtime:4.8-1=checkstyle
org.apache.bcel:bcel:6.5.0=spotbugs
org.apache.commons:commons-lang3:3.12.0=spotbugs
org.apache.commons:commons-lang3:3.14.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.commons:commons-lang3:3.17.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.commons:commons-lang3:3.8.1=pmd
org.apache.commons:commons-text:1.10.0=spotbugs
org.apache.commons:commons-text:1.12.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.commons:commons-text:1.13.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.groovy:groovy-bom:4.0.6=testCompileClasspath,testRuntimeClasspath
org.apache.groovy:groovy:4.0.6=testCompileClasspath,testRuntimeClasspath
org.apache.httpcomponents.client5:httpclient5:5.1.3=spotbugs
Expand Down
5 changes: 3 additions & 2 deletions http/gradle.lockfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ com.google.guava:guava:31.1-jre=compileClasspath,runtimeClasspath,testCompileCla
com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=checkstyle,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
com.google.j2objc:j2objc-annotations:1.3=checkstyle,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
com.puppycrawl.tools:checkstyle:8.29=checkstyle
com.squareup:javapoet:1.13.0=runtimeClasspath,testRuntimeClasspath
com.sun.activation:jakarta.activation:1.2.2=runtimeClasspath,testRuntimeClasspath
com.sun.istack:istack-commons-runtime:3.0.12=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
com.sun.xml.bind:jaxb-impl:2.3.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
Expand Down Expand Up @@ -56,10 +57,10 @@ org.antlr:antlr4-runtime:4.7.2=pmd
org.antlr:antlr4-runtime:4.8-1=checkstyle
org.apache.bcel:bcel:6.5.0=spotbugs
org.apache.commons:commons-lang3:3.12.0=spotbugs
org.apache.commons:commons-lang3:3.14.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.commons:commons-lang3:3.17.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.commons:commons-lang3:3.8.1=pmd
org.apache.commons:commons-text:1.10.0=spotbugs
org.apache.commons:commons-text:1.12.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.commons:commons-text:1.13.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.groovy:groovy-bom:4.0.6=testCompileClasspath,testRuntimeClasspath
org.apache.groovy:groovy:4.0.6=testCompileClasspath,testRuntimeClasspath
org.apache.httpcomponents.client5:httpclient5:5.1.3=spotbugs
Expand Down
5 changes: 3 additions & 2 deletions messaging/gradle.lockfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ com.google.guava:guava:31.1-jre=compileClasspath,runtimeClasspath,testCompileCla
com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=checkstyle,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
com.google.j2objc:j2objc-annotations:1.3=checkstyle,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
com.puppycrawl.tools:checkstyle:8.29=checkstyle
com.squareup:javapoet:1.13.0=runtimeClasspath,testRuntimeClasspath
commons-beanutils:commons-beanutils:1.9.4=checkstyle
commons-codec:commons-codec:1.15=spotbugs
commons-collections:commons-collections:3.2.2=checkstyle
Expand All @@ -47,10 +48,10 @@ org.antlr:antlr4-runtime:4.7.2=pmd
org.antlr:antlr4-runtime:4.8-1=checkstyle
org.apache.bcel:bcel:6.5.0=spotbugs
org.apache.commons:commons-lang3:3.12.0=spotbugs
org.apache.commons:commons-lang3:3.14.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.commons:commons-lang3:3.17.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.commons:commons-lang3:3.8.1=pmd
org.apache.commons:commons-text:1.10.0=spotbugs
org.apache.commons:commons-text:1.12.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.commons:commons-text:1.13.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.groovy:groovy-bom:4.0.6=testCompileClasspath,testRuntimeClasspath
org.apache.groovy:groovy:4.0.6=testCompileClasspath,testRuntimeClasspath
org.apache.httpcomponents.client5:httpclient5:5.1.3=spotbugs
Expand Down
4 changes: 2 additions & 2 deletions test-gateway-generator/gradle.lockfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ net.jcip:jcip-annotations:1.0=spotbugs
net.sf.saxon:Saxon-HE:11.4=spotbugs
org.apache.bcel:bcel:6.5.0=spotbugs
org.apache.commons:commons-lang3:3.12.0=spotbugs
org.apache.commons:commons-lang3:3.14.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.commons:commons-lang3:3.17.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.commons:commons-text:1.10.0=spotbugs
org.apache.commons:commons-text:1.12.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.commons:commons-text:1.13.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.groovy:groovy-bom:4.0.6=testCompileClasspath,testRuntimeClasspath
org.apache.groovy:groovy:4.0.6=testCompileClasspath,testRuntimeClasspath
org.apache.httpcomponents.client5:httpclient5:5.1.3=spotbugs
Expand Down
6 changes: 3 additions & 3 deletions test-gateways/gradle.lockfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ com.google.guava:guava:31.1-jre=compileClasspath,runtimeClasspath,testCompileCla
com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=annotationProcessor,checkstyle,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
com.google.j2objc:j2objc-annotations:1.3=annotationProcessor,checkstyle,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
com.puppycrawl.tools:checkstyle:8.29=checkstyle
com.squareup:javapoet:1.13.0=annotationProcessor
com.squareup:javapoet:1.13.0=annotationProcessor,runtimeClasspath,testRuntimeClasspath
com.sun.activation:jakarta.activation:1.2.2=annotationProcessor,runtimeClasspath,testRuntimeClasspath
com.sun.istack:istack-commons-runtime:3.0.12=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
com.sun.xml.bind:jaxb-impl:2.3.1=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
Expand Down Expand Up @@ -61,10 +61,10 @@ org.antlr:antlr4-runtime:4.7.2=pmd
org.antlr:antlr4-runtime:4.8-1=checkstyle
org.apache.bcel:bcel:6.5.0=spotbugs
org.apache.commons:commons-lang3:3.12.0=spotbugs
org.apache.commons:commons-lang3:3.14.0=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.commons:commons-lang3:3.17.0=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.commons:commons-lang3:3.8.1=pmd
org.apache.commons:commons-text:1.10.0=spotbugs
org.apache.commons:commons-text:1.12.0=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.commons:commons-text:1.13.0=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.groovy:groovy-bom:4.0.6=testCompileClasspath,testRuntimeClasspath
org.apache.groovy:groovy:4.0.6=testCompileClasspath,testRuntimeClasspath
org.apache.httpcomponents.client5:httpclient5:5.1.3=spotbugs
Expand Down
5 changes: 3 additions & 2 deletions test-models/gradle.lockfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ com.google.guava:guava:31.1-jre=compileClasspath,runtimeClasspath,testCompileCla
com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=checkstyle,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
com.google.j2objc:j2objc-annotations:1.3=checkstyle,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
com.puppycrawl.tools:checkstyle:8.29=checkstyle
com.squareup:javapoet:1.13.0=runtimeClasspath,testRuntimeClasspath
com.sun.activation:jakarta.activation:1.2.2=runtimeClasspath,testRuntimeClasspath
com.sun.istack:istack-commons-runtime:3.0.12=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
com.sun.xml.bind:jaxb-impl:2.3.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
Expand Down Expand Up @@ -55,10 +56,10 @@ org.antlr:antlr4-runtime:4.7.2=pmd
org.antlr:antlr4-runtime:4.8-1=checkstyle
org.apache.bcel:bcel:6.5.0=spotbugs
org.apache.commons:commons-lang3:3.12.0=spotbugs
org.apache.commons:commons-lang3:3.14.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.commons:commons-lang3:3.17.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.commons:commons-lang3:3.8.1=pmd
org.apache.commons:commons-text:1.10.0=spotbugs
org.apache.commons:commons-text:1.12.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.commons:commons-text:1.13.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apache.groovy:groovy-bom:4.0.6=testCompileClasspath,testRuntimeClasspath
org.apache.groovy:groovy:4.0.6=testCompileClasspath,testRuntimeClasspath
org.apache.httpcomponents.client5:httpclient5:5.1.3=spotbugs
Expand Down
Loading