Skip to content
Permalink
Browse files

chore: re-indent and apply license headers to all files.

  • Loading branch information...
iocanel committed Nov 24, 2018
1 parent bd40422 commit 1d7fcf2155b92f37e832c53881f5a1c28e9ad1f4
Showing with 5,871 additions and 4,017 deletions.
  1. +31 −15 annotations/component-annotations/pom.xml
  2. +19 −3 annotations/component-annotations/src/main/java/io/ap4k/component/ComponentKubernetesProcessor.java
  3. +23 −7 annotations/component-annotations/src/main/java/io/ap4k/component/ComponentProcessor.java
  4. +18 −2 ...tions/component-annotations/src/main/java/io/ap4k/component/ComponentServiceCatalogProcessor.java
  5. +18 −2 ...ations/component-annotations/src/main/java/io/ap4k/component/annotation/CompositeApplication.java
  6. +16 −0 annotations/component-annotations/src/main/java/io/ap4k/component/decorator/AddEnvToComponent.java
  7. +16 −0 ...ations/component-annotations/src/main/java/io/ap4k/component/decorator/AddRuntimeToComponent.java
  8. +16 −0 ...omponent-annotations/src/main/java/io/ap4k/component/decorator/AddServiceInstanceToComponent.java
  9. +132 −116 annotations/component-annotations/src/main/java/io/ap4k/component/model/Component.java
  10. +111 −95 annotations/component-annotations/src/main/java/io/ap4k/component/model/ComponentList.java
  11. +3 −2 ...tations/component-annotations/src/main/java/io/ap4k/component/model/ComponentMappingProvider.java
  12. +177 −161 annotations/component-annotations/src/main/java/io/ap4k/component/model/ComponentSpec.java
  13. +33 −17 annotations/component-annotations/src/main/java/io/ap4k/component/model/ComponentStatus.java
  14. +17 −1 annotations/component-annotations/src/main/java/io/ap4k/component/model/DeploymentType.java
  15. +43 −27 annotations/component-annotations/src/main/java/io/ap4k/component/model/Env.java
  16. +52 −36 annotations/component-annotations/src/main/java/io/ap4k/component/model/Feature.java
  17. +70 −54 annotations/component-annotations/src/main/java/io/ap4k/component/model/Image.java
  18. +89 −73 annotations/component-annotations/src/main/java/io/ap4k/component/model/Link.java
  19. +43 −27 annotations/component-annotations/src/main/java/io/ap4k/component/model/Parameter.java
  20. +108 −92 annotations/component-annotations/src/main/java/io/ap4k/component/model/Service.java
  21. +60 −44 annotations/component-annotations/src/main/java/io/ap4k/component/model/Storage.java
  22. +23 −23 ...component-annotations/src/main/java/io/ap4k/component/processor/CompositeAnnotationProcessor.java
  23. +16 −0 annotations/component-annotations/src/test/java/io/ap4k/component/ComponentGeneratorTest.java
  24. +16 −0 ...tions/component-annotations/src/test/java/io/ap4k/component/ComponentKubernetesProcessorTest.java
  25. +16 −0 ...s/component-annotations/src/test/java/io/ap4k/component/ComponentServiceCatalogProcessorTest.java
  26. +69 −53 annotations/docker-annotations/pom.xml
  27. +16 −0 annotations/docker-annotations/src/main/java/io/ap4k/docker/Constants.java
  28. +65 −49 annotations/docker-annotations/src/main/java/io/ap4k/docker/annotation/DockerBuild.java
  29. +16 −0 annotations/docker-annotations/src/main/java/io/ap4k/docker/configurator/ApplyHookConfig.java
  30. +31 −15 ...er-annotations/src/main/java/io/ap4k/docker/configurator/ApplyProjectInfoToDockerBuildConfig.java
  31. +16 −0 annotations/docker-annotations/src/main/java/io/ap4k/docker/hook/DockerBuildHook.java
  32. +35 −19 ...ons/docker-annotations/src/main/java/io/ap4k/docker/processor/DockerBuildAnnotationProcessor.java
  33. +83 −67 annotations/istio-annotations/pom.xml
  34. +31 −31 annotations/istio-annotations/src/main/java/io/ap4k/istio/Istio.java
  35. +91 −75 annotations/istio-annotations/src/main/java/io/ap4k/istio/IstioProcessor.java
  36. +57 −41 annotations/istio-annotations/src/main/java/io/ap4k/istio/IstioProxy.java
  37. +18 −2 annotations/istio-annotations/src/main/java/io/ap4k/istio/annotation/Istio.java
  38. +122 −106 annotations/istio-annotations/src/main/java/io/ap4k/istio/annotation/ProxyConfig.java
  39. +16 −0 annotations/istio-annotations/src/main/java/io/ap4k/istio/processor/IstioAnnotationProcessor.java
  40. +2 −1 annotations/istio-annotations/src/test/java/io/ap4k/istio/IstioProcessorTest.java
  41. +77 −61 annotations/kubernetes-annotations/pom.xml
  42. +16 −0 annotations/kubernetes-annotations/src/main/java/io/ap4k/kubernetes/KubernetesProcessor.java
  43. +66 −66 annotations/kubernetes-annotations/src/main/java/io/ap4k/kubernetes/KubernetesResources.java
  44. +21 −21 ...ernetes-annotations/src/main/java/io/ap4k/kubernetes/processor/KubernetesAnnotationProcessor.java
  45. +2 −1 annotations/kubernetes-annotations/src/test/java/io/apk4k/kubernetes/KubernetesProcessorTest.java
  46. +83 −67 annotations/openshift-annotations/pom.xml
  47. +21 −5 annotations/openshift-annotations/src/main/java/io/ap4k/openshift/Constants.java
  48. +14 −13 annotations/openshift-annotations/src/main/java/io/ap4k/openshift/OpenshiftProcessor.java
  49. +88 −88 annotations/openshift-annotations/src/main/java/io/ap4k/openshift/OpenshiftResources.java
  50. +95 −79 annotations/openshift-annotations/src/main/java/io/ap4k/openshift/SourceToImageProcessor.java
  51. +105 −105 ...ations/openshift-annotations/src/main/java/io/ap4k/openshift/annotation/OpenshiftApplication.java
  52. +35 −35 annotations/openshift-annotations/src/main/java/io/ap4k/openshift/annotation/SourceToImage.java
  53. +16 −0 ...ons/openshift-annotations/src/main/java/io/ap4k/openshift/confg/OpenshiftConfigCustomAdapter.java
  54. +16 −0 annotations/openshift-annotations/src/main/java/io/ap4k/openshift/configurator/ApplyHook.java
  55. +16 −0 ...ions/openshift-annotations/src/main/java/io/ap4k/openshift/configurator/ApplyOpenshiftConfig.java
  56. +29 −13 annotations/openshift-annotations/src/main/java/io/ap4k/openshift/hook/JavaBuildHook.java
  57. +17 −1 annotations/openshift-annotations/src/main/java/io/ap4k/openshift/hook/OcBuildHook.java
  58. +35 −35 ...openshift-annotations/src/main/java/io/ap4k/openshift/processor/OpenshiftAnnotationProcessor.java
  59. +39 −39 ...shift-annotations/src/main/java/io/ap4k/openshift/processor/SourceToImageAnnotationProcessor.java
  60. +23 −7 annotations/openshift-annotations/src/main/java/io/ap4k/openshift/utils/OpenshiftUtils.java
  61. +2 −1 annotations/openshift-annotations/src/test/java/io/ap4k/openshift/OpenshiftProcessorTest.java
  62. +16 −0 annotations/openshift-annotations/src/test/java/io/ap4k/openshift/config/OpenshiftConfigTest.java
  63. +34 −18 annotations/pom.xml
  64. +16 −0 annotations/servicecatalog-annotations/pom.xml
  65. +16 −0 annotations/servicecatalog-annotations/src/main/java/io/ap4k/servicecatalog/Constants.java
  66. +34 −18 ...ions/servicecatalog-annotations/src/main/java/io/ap4k/servicecatalog/ServiceCatalogProcessor.java
  67. +5 −5 ...tations/servicecatalog-annotations/src/main/java/io/ap4k/servicecatalog/annotation/Parameter.java
  68. +4 −4 ...ns/servicecatalog-annotations/src/main/java/io/ap4k/servicecatalog/annotation/ServiceCatalog.java
  69. +38 −38 ...cecatalog-annotations/src/main/java/io/ap4k/servicecatalog/annotation/ServiceCatalogInstance.java
  70. +16 −0 .../servicecatalog-annotations/src/main/java/io/ap4k/servicecatalog/config/ServiceCatalogConfig.java
  71. +19 −3 ...ecatalog-annotations/src/main/java/io/ap4k/servicecatalog/config/ServiceCatalogConfigAdapter.java
  72. +42 −26 ...annotations/src/main/java/io/ap4k/servicecatalog/processor/ServiceCatalogAnnotationProcessor.java
  73. +2 −1 .../servicecatalog-annotations/src/main/test/io/ap4k/servicecatalog/ServiceCatalogGeneratorTest.java
  74. +16 −0 .../servicecatalog-annotations/src/test/java/io/ap4k/servicecatalog/ServiceCatalogProcessorTest.java
  75. +70 −54 core/pom.xml
  76. +72 −56 core/src/main/java/io/ap4k/AbstractKubernetesProcessor.java
  77. +16 −0 core/src/main/java/io/ap4k/Ap4k.java
  78. +16 −0 core/src/main/java/io/ap4k/Ap4kException.java
  79. +17 −1 core/src/main/java/io/ap4k/Configurators.java
  80. +16 −0 core/src/main/java/io/ap4k/Processor.java
  81. +16 −0 core/src/main/java/io/ap4k/Resources.java
  82. +13 −13 core/src/main/java/io/ap4k/Session.java
  83. +5 −5 core/src/main/java/io/ap4k/annotation/Annotation.java
  84. +33 −17 core/src/main/java/io/ap4k/annotation/AwsElasticBlockStoreVolume.java
  85. +35 −19 core/src/main/java/io/ap4k/annotation/AzureDiskVolume.java
  86. +28 −12 core/src/main/java/io/ap4k/annotation/AzureFileVolume.java
  87. +36 −20 core/src/main/java/io/ap4k/annotation/ConfigMapVolume.java
  88. +8 −8 core/src/main/java/io/ap4k/annotation/Env.java
  89. +36 −20 core/src/main/java/io/ap4k/annotation/GitRepoVolume.java
  90. +16 −0 core/src/main/java/io/ap4k/annotation/Internal.java
  91. +119 −119 core/src/main/java/io/ap4k/annotation/KubernetesApplication.java
  92. +5 −5 core/src/main/java/io/ap4k/annotation/Label.java
  93. +36 −20 core/src/main/java/io/ap4k/annotation/Mount.java
  94. +31 −15 core/src/main/java/io/ap4k/annotation/PersistentVolumeClaimVolume.java
  95. +20 −20 core/src/main/java/io/ap4k/annotation/Port.java
  96. +38 −38 core/src/main/java/io/ap4k/annotation/Probe.java
  97. +36 −20 core/src/main/java/io/ap4k/annotation/SecretVolume.java
  98. +6 −5 core/src/main/java/io/ap4k/annotation/ServiceType.java
  99. +23 −23 core/src/main/java/io/ap4k/config/ConfigKey.java
  100. +41 −41 core/src/main/java/io/ap4k/config/Configuration.java
  101. +2 −1 core/src/main/java/io/ap4k/config/ConfigurationSupplier.java
  102. +16 −0 core/src/main/java/io/ap4k/config/Configurator.java
  103. +6 −6 core/src/main/java/io/ap4k/config/ImagePullPolicy.java
  104. +17 −1 core/src/main/java/io/ap4k/config/Protocol.java
  105. +8 −8 core/src/main/java/io/ap4k/configurator/AddPort.java
  106. +76 −60 core/src/main/java/io/ap4k/decorator/AbstractAddProbe.java
  107. +22 −22 core/src/main/java/io/ap4k/decorator/AddAnnotation.java
  108. +31 −15 core/src/main/java/io/ap4k/decorator/AddAwsElasticBlockStoreVolume.java
  109. +33 −17 core/src/main/java/io/ap4k/decorator/AddAzureDiskVolume.java
  110. +30 −14 core/src/main/java/io/ap4k/decorator/AddAzureFileVolume.java
  111. +30 −14 core/src/main/java/io/ap4k/decorator/AddConfigMapVolume.java
  112. +68 −68 core/src/main/java/io/ap4k/decorator/AddEnvVar.java
  113. +22 −22 core/src/main/java/io/ap4k/decorator/AddLabel.java
  114. +37 −21 core/src/main/java/io/ap4k/decorator/AddLivenessProbe.java
  115. +29 −13 core/src/main/java/io/ap4k/decorator/AddMount.java
  116. +32 −32 core/src/main/java/io/ap4k/decorator/AddPort.java
  117. +29 −13 core/src/main/java/io/ap4k/decorator/AddPvcVolume.java
  118. +37 −21 core/src/main/java/io/ap4k/decorator/AddReadinessProbe.java
  119. +30 −14 core/src/main/java/io/ap4k/decorator/AddSecretVolume.java
  120. +28 −27 core/src/main/java/io/ap4k/decorator/AddService.java
  121. +19 −19 core/src/main/java/io/ap4k/decorator/ContainerDecorator.java
  122. +16 −0 core/src/main/java/io/ap4k/decorator/Decorator.java
  123. +3 −3 core/src/main/java/io/ap4k/decorator/FluentDecorator.java
  124. +10 −10 core/src/main/java/io/ap4k/decorator/VolumeDecorator.java
  125. +10 −10 core/src/main/java/io/ap4k/decorator/VolumeMountDecorator.java
  126. +17 −1 core/src/main/java/io/ap4k/hook/ProjectHook.java
  127. +64 −64 core/src/main/java/io/ap4k/processor/AbstractAnnotationProcessor.java
  128. +31 −15 core/src/main/java/io/ap4k/project/ApplyProjectInfo.java
  129. +31 −31 core/src/main/java/io/ap4k/project/AptProjectFactory.java
  130. +16 −16 core/src/main/java/io/ap4k/project/BazelInfoReader.java
  131. +39 −39 core/src/main/java/io/ap4k/project/BuildInfo.java
  132. +23 −23 core/src/main/java/io/ap4k/project/BuildInfoReader.java
  133. +42 −42 core/src/main/java/io/ap4k/project/FileProjectFactory.java
  134. +16 −16 core/src/main/java/io/ap4k/project/GenericReader.java
  135. +16 −16 core/src/main/java/io/ap4k/project/GradleInfoReader.java
  136. +16 −16 core/src/main/java/io/ap4k/project/LeiningenInfoReader.java
  137. +8 −8 core/src/main/java/io/ap4k/project/MavenInfoReader.java
  138. +17 −17 core/src/main/java/io/ap4k/project/Project.java
  139. +16 −16 core/src/main/java/io/ap4k/project/SbtInfoReader.java
  140. +45 −44 core/src/main/java/io/ap4k/utils/Images.java
  141. +25 −24 core/src/main/java/io/ap4k/utils/Labels.java
  142. +70 −54 core/src/main/java/io/ap4k/utils/Packaging.java
  143. +29 −13 core/src/main/java/io/ap4k/utils/Serialization.java
  144. +3 −3 core/src/main/java/io/ap4k/utils/Strings.java
  145. +32 −16 core/src/test/java/io/ap4k/decorator/AddAnnotationTest.java
  146. +30 −14 core/src/test/java/io/ap4k/decorator/AddVolumeTest.java
  147. +16 −0 examples/component-example/pom.xml
  148. +20 −4 examples/component-example/src/main/java/io/ap4k/examples/component/Controller.java
  149. +6 −6 examples/component-example/src/main/java/io/ap4k/examples/component/Main.java
  150. +16 −0 examples/component-example/src/test/java/io/ap4k/examples/ComponentSpringBootExampleTest.java
  151. +16 −0 examples/component-service-example/pom.xml
  152. +11 −10 examples/component-service-example/src/main/java/io/ap4k/examples/component/service/Controller.java
  153. +6 −6 examples/component-service-example/src/main/java/io/ap4k/examples/component/service/Main.java
  154. +7 −6 ...mponent-service-example/src/test/java/io/ap4k/examples/ComponentServiceSpringBootExampleTest.java
  155. +38 −22 examples/istio-example/pom.xml
  156. +3 −3 examples/istio-example/src/main/java/io/ap4k/examples/istio/Main.java
  157. +77 −61 examples/kubernetes-example/pom.xml
  158. +20 −4 examples/kubernetes-example/src/main/java/io/ap4k/examples/kubernetes/Controller.java
  159. +6 −6 examples/kubernetes-example/src/main/java/io/ap4k/examples/kubernetes/Main.java
  160. +2 −1 examples/kubernetes-example/src/test/java/io/ap4k/examples/KubernetesExampleTest.java
  161. +15 −0 examples/openshift-example/pom.xml
  162. +20 −4 examples/openshift-example/src/main/java/io/ap4k/examples/openshift/Controller.java
  163. +6 −6 examples/openshift-example/src/main/java/io/ap4k/examples/openshift/Main.java
  164. +2 −1 examples/openshift-example/src/test/java/io/ap4k/examples/openshift/OpenshiftExampleTest.java
  165. +16 −0 examples/service-catalog-example/pom.xml
  166. +3 −3 examples/service-catalog-example/src/main/java/io/ap4k/examples/svcat/Main.java
  167. +16 −0 examples/source-to-image-example/pom.xml
  168. +20 −4 examples/source-to-image-example/src/main/java/io/ap4k/examples/s2i/Controller.java
  169. +6 −6 examples/source-to-image-example/src/main/java/io/ap4k/examples/s2i/Main.java
  170. +16 −0 examples/source-to-image-example/src/test/java/io/ap4k/examples/s2i/SourceToImageExampleIT.java
  171. +16 −0 examples/source-to-image-example/src/test/java/io/ap4k/examples/s2i/SourceToImageExampleTest.java
  172. +76 −76 examples/spring-boot-on-kubernetes-example/pom.xml
  173. +20 −4 ...es/spring-boot-on-kubernetes-example/src/main/java/io/ap4k/example/sbonkubernetes/Controller.java
  174. +6 −6 examples/spring-boot-on-kubernetes-example/src/main/java/io/ap4k/example/sbonkubernetes/Main.java
  175. +16 −0 ...-on-kubernetes-example/src/test/java/io/ap4k/example/sbonkubernetes/SpringBootOnKubernetesIT.java
  176. +16 −0 ...n-kubernetes-example/src/test/java/io/ap4k/example/sbonkubernetes/SpringBootOnKubernetesTest.java
  177. +57 −57 examples/spring-boot-on-openshift-example/pom.xml
  178. +20 −4 ...ples/spring-boot-on-openshift-example/src/main/java/io/ap4k/example/sbonopenshift/Controller.java
  179. +6 −6 examples/spring-boot-on-openshift-example/src/main/java/io/ap4k/example/sbonopenshift/Main.java
  180. +16 −0 ...t-on-openshift-example/src/test/java/io/ap4k/example/sbonopenshift/SpringBootOnOpenshiftTest.java
  181. +14 −14 frameworks/micronaut/src/main/java/io/ap4k/micronaut/MicronautProcessor.java
  182. +15 −15 frameworks/pom.xml
  183. +61 −61 frameworks/spring-boot/pom.xml
  184. +16 −0 frameworks/spring-boot/src/main/java/io/ap4k/spring/configurator/SetSpringBootRuntime.java
  185. +16 −0 frameworks/spring-boot/src/main/java/io/ap4k/spring/processor/SpringBootApplicationProcessor.java
  186. +14 −14 frameworks/spring-boot/src/main/java/io/ap4k/spring/processor/SpringBootMappingProcessor.java
  187. +19 −3 frameworks/spring-boot/src/test/java/io/ap4k/spring/SpringBootTest.java
  188. +14 −14 frameworks/thorntail/src/main/java/io/ap4k/thorntail/ThrorntailProcessor.java
  189. +1 −1 header.txt
  190. +104 −104 pom.xml
  191. +19 −3 testing/kubernetes-junit/src/main/java/io/ap4k/testing/kubernetes/Kubernetes.java
  192. +42 −26 testing/openshift-junit/src/main/java/io/ap4k/testing/openshift/SourceToImageExtension.java
@@ -1,4 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2018 The original authors.
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">
@@ -57,19 +73,19 @@
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>${version.maven-compiler-plugin}</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<annotationProcessors>
<processor>io.sundr.builder.internal.processor.BuildableProcessor</processor>
</annotationProcessors>
</configuration>
</plugin>
</plugins>
</build>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>${version.maven-compiler-plugin}</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<annotationProcessors>
<processor>io.sundr.builder.internal.processor.BuildableProcessor</processor>
</annotationProcessors>
</configuration>
</plugin>
</plugins>
</build>
</project>
@@ -1,3 +1,19 @@
/**
* Copyright 2018 The original authors.
*
* 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.
*
**/
package io.ap4k.component;

import io.ap4k.Processor;
@@ -54,8 +70,8 @@ private Component createComponent(KubernetesConfig config) {


private void addVisitors(KubernetesConfig config) {
for (Env env : config.getEnvVars()) {
resources.accept(COMPONENT, new AddEnvToComponent(env));
}
for (Env env : config.getEnvVars()) {
resources.accept(COMPONENT, new AddEnvToComponent(env));
}
}
}
@@ -1,3 +1,19 @@
/**
* Copyright 2018 The original authors.
*
* 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.
*
**/
package io.ap4k.component;

import io.ap4k.Processor;
@@ -26,20 +42,20 @@ public ComponentProcessor(Resources resources) {

@Override
public void process(CompositeConfig config) {
addVisitors(config);
addVisitors(config);
}

@Override
public boolean accepts(Class<? extends Configuration> type) {
return type.equals(CompositeConfig.class) ||
type.equals(EditableCompositeConfig.class);
return type.equals(CompositeConfig.class) ||
type.equals(EditableCompositeConfig.class);
}

private void addVisitors(KubernetesConfig config) {
String type = config.getAttribute(RUNTIME_TYPE);
if (type != null) {
resources.accept(COMPONENT,new AddRuntimeToComponent(type));
}
String type = config.getAttribute(RUNTIME_TYPE);
if (type != null) {
resources.accept(COMPONENT,new AddRuntimeToComponent(type));
}
}

}
@@ -1,3 +1,19 @@
/**
* Copyright 2018 The original authors.
*
* 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.
*
**/

package io.ap4k.component;

@@ -12,7 +28,7 @@
public class ComponentServiceCatalogProcessor implements Processor<ServiceCatalogConfig> {

private static final String COMPONENT = "component";

private final Resources resources;

public ComponentServiceCatalogProcessor() {
@@ -21,7 +37,7 @@ public ComponentServiceCatalogProcessor() {
public ComponentServiceCatalogProcessor(Resources resources) {
this.resources = resources;
}

public void process(ServiceCatalogConfig config) {
for (ServiceCatalogInstance instance : config.getInstances()) {
resources.accept(COMPONENT, new AddServiceInstanceToComponent(instance));
@@ -1,3 +1,19 @@
/**
* Copyright 2018 The original authors.
*
* 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.
*
**/
package io.ap4k.component.annotation;


@@ -26,9 +42,9 @@

/*
Env[] envVars() default {};
Env[] envVars() default {};
ServiceCatalogInstance[] instances();
ServiceCatalogInstance[] instances();
*/
}
@@ -1,3 +1,19 @@
/**
* Copyright 2018 The original authors.
*
* 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.
*
**/
package io.ap4k.component.decorator;

import io.ap4k.component.model.ComponentSpecBuilder;
@@ -1,3 +1,19 @@
/**
* Copyright 2018 The original authors.
*
* 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.
*
**/
package io.ap4k.component.decorator;

import io.ap4k.component.model.ComponentSpecBuilder;
@@ -1,3 +1,19 @@
/**
* Copyright 2018 The original authors.
*
* 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.
*
**/
package io.ap4k.component.decorator;

import io.ap4k.component.model.ComponentSpecBuilder;

0 comments on commit 1d7fcf2

Please sign in to comment.
You can’t perform that action at this time.