Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/release/00.09.05-RPM'
Browse files Browse the repository at this point in the history
  • Loading branch information
svenruppert committed Jul 6, 2019
2 parents 1ecea9e + 45130d3 commit 54c670a
Show file tree
Hide file tree
Showing 259 changed files with 5,737 additions and 5,849 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
_data/_apidoc


# Created by .ignore support plugin (hsz.mobi)
### Eclipse template
*.pydevproject
Expand Down
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

540 changes: 532 additions & 8 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ToDo.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ToDos

* remove the metrics proxies to an external module (proxybuilder add ons)
* remove the static runtime in memory version based on sun.misc.unsafe

70 changes: 0 additions & 70 deletions bom/pom.xml

This file was deleted.

19 changes: 19 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
#
# Copyright © 2013 Sven Ruppert (sven.ruppert@gmail.com)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

docker rm deploy
docker-compose up
33 changes: 33 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#
# Copyright © 2013 Sven Ruppert (sven.ruppert@gmail.com)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

version: '3.5'

services:
deploy:
image: svenruppert/maven-3.6.1-adopt:1.8.212-04
container_name: deploy
hostname: deploy
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- $PWD/:/usr/src/mymaven
- ~/.m2/settings.xml:/root/.m2/settings.xml
- ~/.gnupg/:/root/.gnupg/
working_dir: /usr/src/mymaven
# command: 'mvn help:active-profiles
command: 'mvn license:format clean deploy
-P_release
-Dmaven.test.skip=true '
25 changes: 25 additions & 0 deletions docker_compile_locale.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env bash
#
# Copyright © 2013 Sven Ruppert (sven.ruppert@gmail.com)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#


docker run \
--rm \
--name compile \
-v "$(pwd)":/usr/src/mymaven \
-w /usr/src/mymaven \
svenruppert/maven-3.6.1-adopt:1.8.212-04 \
mvn clean install
53 changes: 53 additions & 0 deletions impl/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright © 2013 Sven Ruppert (sven.ruppert@gmail.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>org.rapidpm.proxybuilder</groupId>
<artifactId>rapidpm-proxybuilder</artifactId>
<version>00.09.05-RPM</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>rapidpm-proxybuilder-impl</artifactId>


<dependencies>
<dependency>
<groupId>net.oneandone.reflections8</groupId>
<artifactId>reflections8</artifactId>
<version>0.11.4</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgument>-Xlint:all</compilerArgument>
<compilerArgument>-proc:none</compilerArgument>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
</configuration>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -1,23 +1,34 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
/**
* Copyright © 2013 Sven Ruppert (sven.ruppert@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
Copyright © 2013 Sven Ruppert (sven.ruppert@gmail.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
package org.rapidpm.proxybuilder.core.annotationprocessor;
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package org.rapidpm.proxybuilder;

import com.squareup.javapoet.*;
import com.squareup.javapoet.TypeSpec.Builder;
Expand Down Expand Up @@ -275,7 +286,7 @@ protected MethodSpec.Builder defineDelegatorMethodSpec(final ExecutableElement m
methodBuilder.addTypeVariable(
TypeVariableName.get(
typeName.toString(),
typeNames.toArray(new TypeName[typeNames.size()])));
typeNames.toArray(new TypeName[0])));
}
} else { // <T>
final TypeName typeName = TypeVariableName.get(returnType);
Expand Down Expand Up @@ -326,27 +337,26 @@ protected Optional<TypeSpec> writeFunctionalInterface(final TypeElement typeElem
final String firstCharUpper = (methodNameRaw.charAt(0) + "").toUpperCase();
final List<TypeMirror> argumentTypeListFromMethod = extractArgumentTypeListFromMethod(methodElement);

final String methodNamePostFix = (argumentTypeListFromMethod.isEmpty()) ? "" : "" +
String.join("", argumentTypeListFromMethod
.stream()
.map(t -> {
String postFix = "";
if (t.getKind().isPrimitive()) {
final TypeName boxedTypeName = TypeName.get(t).box();
final String[] split = boxedTypeName.toString().split("\\.");
postFix = split[split.length - 1];
} else if (t.getKind().equals(ARRAY)) {
final String[] split = t.toString().replace("[]", "Array").split("\\.");
postFix = split[split.length - 1];
} else {
System.out.println("writeFunctionalInterface t = " + t);
final Element element = typeUtils.asElement(t);
final ClassName className = ClassName.get((TypeElement) element);
final String[] split = className.simpleName().split("\\.");
postFix = split[split.length - 1];
}
return postFix.substring(0, 1).toUpperCase() + postFix.substring(1);
}).collect(Collectors.toList()));
final String methodNamePostFix = (argumentTypeListFromMethod.isEmpty()) ? "" : "" + argumentTypeListFromMethod
.stream()
.map(t -> {
String postFix = "";
if (t.getKind().isPrimitive()) {
final TypeName boxedTypeName = TypeName.get(t).box();
final String[] split = boxedTypeName.toString().split("\\.");
postFix = split[split.length - 1];
} else if (t.getKind().equals(ARRAY)) {
final String[] split = t.toString().replace("[]", "Array").split("\\.");
postFix = split[split.length - 1];
} else {
System.out.println("writeFunctionalInterface t = " + t);
final Element element = typeUtils.asElement(t);
final ClassName className = ClassName.get((TypeElement) element);
final String[] split = className.simpleName().split("\\.");
postFix = split[split.length - 1];
}
return postFix.substring(0, 1).toUpperCase() + postFix.substring(1);
}).collect(Collectors.joining(""));


final String finalMethodName = firstCharUpper + methodNameRaw.substring(1) + methodNamePostFix;
Expand Down
Loading

0 comments on commit 54c670a

Please sign in to comment.