From fc070134a6c2564daeec64de34086f504a9a9b15 Mon Sep 17 00:00:00 2001 From: Peter Vlugter Date: Fri, 26 Jun 2020 16:27:18 +1200 Subject: [PATCH 1/2] Add automated header settings --- build.sbt | 16 +++++++++++----- project/plugins.sbt | 2 +- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/build.sbt b/build.sbt index 36c9e9228..d3a8fefbc 100644 --- a/build.sbt +++ b/build.sbt @@ -84,14 +84,18 @@ def akkaDiscoveryDependency(name: String, excludeThese: ExclusionRule*) = def akkaPersistenceCassandraDependency(name: String, excludeThese: ExclusionRule*) = "com.typesafe.akka" %% name % AkkaPersistenceCassandraVersion excludeAll ((excludeTheseDependencies ++ excludeThese): _*) -def common: Seq[Setting[_]] = Seq( +def common: Seq[Setting[_]] = automateHeaderSettings(Compile, Test) ++ Seq( headerMappings := headerMappings.value ++ Seq( de.heikoseeberger.sbtheader.FileType("proto") -> HeaderCommentStyle.cppStyleLineComment, de.heikoseeberger.sbtheader.FileType("js") -> HeaderCommentStyle.cStyleBlockComment ), // Akka gRPC overrides the default ScalaPB setting including the file base name, let's override it right back. akkaGrpcCodeGeneratorSettings := Seq(), - excludeFilter in headerResources := HiddenFileFilter || GlobFilter("reflection.proto"), + headerSources / excludeFilter := (headerSources / excludeFilter).value || "package-info.java", + headerResources / excludeFilter := (headerResources / excludeFilter).value || { + val googleProtos = ((baseDirectory in ThisBuild).value / "protocols" / "frontend" / "google").getCanonicalPath + new SimpleFileFilter(_.getCanonicalPath startsWith googleProtos) + }, javaOptions in Test ++= Seq("-Xms1G", "-XX:+CMSClassUnloadingEnabled", "-XX:+UseConcMarkSweepGC") ) @@ -707,7 +711,7 @@ lazy val `scala-support` = (project in file("scala-support")) lazy val `java-shopping-cart` = (project in file("samples/java-shopping-cart")) .dependsOn(`java-support`) - .enablePlugins(AkkaGrpcPlugin, AssemblyPlugin, JavaAppPackaging, DockerPlugin) + .enablePlugins(AkkaGrpcPlugin, AssemblyPlugin, JavaAppPackaging, DockerPlugin, AutomateHeaderPlugin) .settings( name := "java-shopping-cart", dockerSettings, @@ -727,7 +731,7 @@ lazy val `java-shopping-cart` = (project in file("samples/java-shopping-cart")) lazy val `java-pingpong` = (project in file("samples/java-pingpong")) .dependsOn(`java-support`) - .enablePlugins(AkkaGrpcPlugin, AssemblyPlugin, JavaAppPackaging, DockerPlugin) + .enablePlugins(AkkaGrpcPlugin, AssemblyPlugin, JavaAppPackaging, DockerPlugin, AutomateHeaderPlugin) .settings( name := "java-pingpong", dockerSettings, @@ -816,6 +820,8 @@ lazy val `tck` = (project in file("tck")) dockerSettings, Compile / bashScriptDefines / mainClass := Some("org.scalatest.run"), bashScriptExtraDefines += "addApp io.cloudstate.tck.ConfiguredCloudStateTCK", + headerSettings(IntegrationTest), + automateHeaderSettings(IntegrationTest), javaOptions in IntegrationTest := sys.props.get("config.resource").map(r => s"-Dconfig.resource=$r").toSeq, parallelExecution in IntegrationTest := false, executeTests in IntegrationTest := (executeTests in IntegrationTest) @@ -824,7 +830,7 @@ lazy val `tck` = (project in file("tck")) ) lazy val `graal-tools` = (project in file("graal-tools")) - .enablePlugins(GraalVMPlugin) + .enablePlugins(GraalVMPlugin, AutomateHeaderPlugin) .settings( libraryDependencies ++= List( "org.graalvm.nativeimage" % "svm" % GraalVersion % "provided", diff --git a/project/plugins.sbt b/project/plugins.sbt index 641595580..eb00fc251 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -10,7 +10,7 @@ addSbtPlugin("com.lightbend.sbt" % "sbt-java-formatter" % "0.4.4") addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.0.1") -addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.2.0") +addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.6.0") addSbtPlugin("com.github.gseitz" % "sbt-protobuf" % "0.6.5") addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.9.0") From 08cda1164e9b339dc57027c50421ba192f176171 Mon Sep 17 00:00:00 2001 From: Peter Vlugter Date: Fri, 26 Jun 2020 16:27:48 +1200 Subject: [PATCH 2/2] Auto-create headers --- .../java/docs/user/crdt/ShoppingCartEntity.java | 16 ++++++++++++++++ .../docs/user/effects/ShoppingCartEntity.java | 16 ++++++++++++++++ .../user/eventsourced/ShoppingCartEntity.java | 16 ++++++++++++++++ .../behavior/ShoppingCartEntity.java | 16 ++++++++++++++++ .../user/gettingstarted/ShoppingCartMain.java | 16 ++++++++++++++++ .../io/cloudstate/graaltools/Substitutions.java | 16 ++++++++++++++++ .../graaltools/AkkaActorRegisterFeature.scala | 16 ++++++++++++++++ .../io/cloudstate/graaltools/Existence.scala | 16 ++++++++++++++++ ...ProtobufGeneratedMessageRegisterFeature.scala | 16 ++++++++++++++++ .../javasupport/ClientActionContext.java | 16 ++++++++++++++++ .../io/cloudstate/javasupport/CloudState.java | 16 ++++++++++++++++ .../java/io/cloudstate/javasupport/Context.java | 16 ++++++++++++++++ .../io/cloudstate/javasupport/EffectContext.java | 16 ++++++++++++++++ .../io/cloudstate/javasupport/EntityContext.java | 16 ++++++++++++++++ .../io/cloudstate/javasupport/EntityFactory.java | 16 ++++++++++++++++ .../java/io/cloudstate/javasupport/EntityId.java | 16 ++++++++++++++++ .../java/io/cloudstate/javasupport/Jsonable.java | 16 ++++++++++++++++ .../io/cloudstate/javasupport/ServiceCall.java | 16 ++++++++++++++++ .../javasupport/ServiceCallFactory.java | 16 ++++++++++++++++ .../cloudstate/javasupport/ServiceCallRef.java | 16 ++++++++++++++++ .../javasupport/crdt/AbstractORMapWrapper.java | 16 ++++++++++++++++ .../javasupport/crdt/CommandContext.java | 16 ++++++++++++++++ .../javasupport/crdt/CommandHandler.java | 16 ++++++++++++++++ .../io/cloudstate/javasupport/crdt/Crdt.java | 16 ++++++++++++++++ .../cloudstate/javasupport/crdt/CrdtContext.java | 16 ++++++++++++++++ .../javasupport/crdt/CrdtCreationContext.java | 16 ++++++++++++++++ .../cloudstate/javasupport/crdt/CrdtEntity.java | 16 ++++++++++++++++ .../javasupport/crdt/CrdtEntityFactory.java | 16 ++++++++++++++++ .../javasupport/crdt/CrdtEntityHandler.java | 16 ++++++++++++++++ .../cloudstate/javasupport/crdt/CrdtFactory.java | 16 ++++++++++++++++ .../io/cloudstate/javasupport/crdt/Flag.java | 16 ++++++++++++++++ .../io/cloudstate/javasupport/crdt/GCounter.java | 16 ++++++++++++++++ .../io/cloudstate/javasupport/crdt/GSet.java | 16 ++++++++++++++++ .../cloudstate/javasupport/crdt/LWWRegister.java | 16 ++++++++++++++++ .../javasupport/crdt/LWWRegisterMap.java | 16 ++++++++++++++++ .../io/cloudstate/javasupport/crdt/ORMap.java | 16 ++++++++++++++++ .../io/cloudstate/javasupport/crdt/ORSet.java | 16 ++++++++++++++++ .../cloudstate/javasupport/crdt/PNCounter.java | 16 ++++++++++++++++ .../javasupport/crdt/PNCounterMap.java | 16 ++++++++++++++++ .../javasupport/crdt/StreamCancelledContext.java | 16 ++++++++++++++++ .../javasupport/crdt/StreamedCommandContext.java | 16 ++++++++++++++++ .../javasupport/crdt/SubscriptionContext.java | 16 ++++++++++++++++ .../io/cloudstate/javasupport/crdt/Vote.java | 16 ++++++++++++++++ .../javasupport/eventsourced/CommandContext.java | 16 ++++++++++++++++ .../javasupport/eventsourced/CommandHandler.java | 16 ++++++++++++++++ .../javasupport/eventsourced/EventContext.java | 16 ++++++++++++++++ .../javasupport/eventsourced/EventHandler.java | 16 ++++++++++++++++ .../eventsourced/EventSourcedContext.java | 16 ++++++++++++++++ .../eventsourced/EventSourcedEntity.java | 16 ++++++++++++++++ .../EventSourcedEntityCreationContext.java | 16 ++++++++++++++++ .../eventsourced/EventSourcedEntityFactory.java | 16 ++++++++++++++++ .../eventsourced/EventSourcedEntityHandler.java | 16 ++++++++++++++++ .../javasupport/eventsourced/Snapshot.java | 16 ++++++++++++++++ .../eventsourced/SnapshotContext.java | 16 ++++++++++++++++ .../eventsourced/SnapshotHandler.java | 16 ++++++++++++++++ .../javasupport/impl/CloudStateAnnotation.java | 16 ++++++++++++++++ .../cloudstate/javasupport/impl/AnySupport.scala | 16 ++++++++++++++++ .../cloudstate/javasupport/impl/Contexts.scala | 16 ++++++++++++++++ .../javasupport/impl/ReflectionHelper.scala | 16 ++++++++++++++++ .../impl/ResolvedServiceCallFactory.scala | 16 ++++++++++++++++ .../javasupport/impl/ResolvedServiceMethod.scala | 16 ++++++++++++++++ .../impl/crdt/AbstractCrdtFactory.scala | 16 ++++++++++++++++ .../impl/crdt/AnnotationBasedCrdtSupport.scala | 16 ++++++++++++++++ .../impl/crdt/CrdtStateTransformer.scala | 16 ++++++++++++++++ .../javasupport/impl/crdt/FlagImpl.scala | 16 ++++++++++++++++ .../javasupport/impl/crdt/GCounterImpl.scala | 16 ++++++++++++++++ .../javasupport/impl/crdt/GSetImpl.scala | 16 ++++++++++++++++ .../javasupport/impl/crdt/InternalCrdt.scala | 16 ++++++++++++++++ .../javasupport/impl/crdt/LWWRegisterImpl.scala | 16 ++++++++++++++++ .../javasupport/impl/crdt/ORMapImpl.scala | 16 ++++++++++++++++ .../javasupport/impl/crdt/ORSetImpl.scala | 16 ++++++++++++++++ .../javasupport/impl/crdt/PNCounterImpl.scala | 16 ++++++++++++++++ .../javasupport/impl/crdt/VoteImpl.scala | 16 ++++++++++++++++ .../AnnotationBasedEventSourcedSupport.scala | 16 ++++++++++++++++ .../javasupport/impl/AnySupportSpec.scala | 16 ++++++++++++++++ .../crdt/AnnotationBasedCrdtSupportSpec.scala | 16 ++++++++++++++++ .../AnnotationBasedEventSourcedSupportSpec.scala | 16 ++++++++++++++++ node-support/index.js | 1 - node-support/src/stateless-support.js | 1 + .../io/cloudstate/operator/OperatorConfig.scala | 16 ++++++++++++++++ .../io/cloudstate/operator/ResourceHelper.scala | 16 ++++++++++++++++ .../io/cloudstate/operator/StatefulService.scala | 16 ++++++++++++++++ .../scala/io/cloudstate/operator/Validated.scala | 16 ++++++++++++++++ .../scala/io/cloudstate/operator/Watcher.scala | 16 ++++++++++++++++ .../operator/stores/CassandraStoreSupport.scala | 16 ++++++++++++++++ .../operator/stores/CredentialsHelper.scala | 16 ++++++++++++++++ .../operator/stores/InMemoryStoreSupport.scala | 16 ++++++++++++++++ .../operator/stores/PostgresStoreSupport.scala | 16 ++++++++++++++++ .../operator/stores/StatefulStoreSupport.scala | 16 ++++++++++++++++ protocols/example/crdts/crdt-example.proto | 14 ++++++++++++++ .../shoppingcart/persistence/domain.proto | 14 ++++++++++++++ .../example/shoppingcart/shoppingcart.proto | 14 ++++++++++++++ .../cloudstate/proxy/FileDescriptorBuilder.scala | 16 ++++++++++++++++ .../io/cloudstate/proxy/GrpcWebSupport.scala | 16 ++++++++++++++++ .../cloudstate/proxy/ProtobufAnySerializer.scala | 1 + .../io/cloudstate/proxy/UserFunctionRouter.scala | 16 ++++++++++++++++ .../proxy/UserFunctionTypeSupport.scala | 16 ++++++++++++++++ .../cloudstate/proxy/autoscaler/Autoscaler.scala | 16 ++++++++++++++++ .../autoscaler/KubernetesDeploymentScaler.scala | 16 ++++++++++++++++ .../proxy/autoscaler/NoAutoscaler.scala | 16 ++++++++++++++++ .../cloudstate/proxy/autoscaler/NoScaler.scala | 16 ++++++++++++++++ .../io/cloudstate/proxy/crdt/CrdtEntity.scala | 16 ++++++++++++++++ .../proxy/crdt/CrdtEntityManager.scala | 16 ++++++++++++++++ .../cloudstate/proxy/crdt/CrdtSerializers.scala | 16 ++++++++++++++++ .../proxy/crdt/CrdtSupportFactory.scala | 16 ++++++++++++++++ .../io/cloudstate/proxy/crdt/NodeVector.scala | 16 ++++++++++++++++ .../proxy/crdt/UserFunctionProtocolError.scala | 16 ++++++++++++++++ .../scala/io/cloudstate/proxy/crdt/Vote.scala | 16 ++++++++++++++++ .../cloudstate/proxy/crdt/WireTransformer.scala | 16 ++++++++++++++++ .../proxy/eventing/EventingManager.scala | 16 ++++++++++++++++ .../proxy/eventing/GooglePubsubEventing.scala | 16 ++++++++++++++++ .../DynamicLeastShardAllocationStrategy.scala | 16 ++++++++++++++++ .../EventSourcedSupportFactory.scala | 16 ++++++++++++++++ .../StatelessFunctionSupportFactory.scala | 16 ++++++++++++++++ .../cloudstate/proxy/test/HttpApiTest.proto | 14 ++++++++++++++ .../proxy/test/IllegalHttpConfig0.proto | 14 ++++++++++++++ .../proxy/test/IllegalHttpConfig1.proto | 14 ++++++++++++++ .../proxy/test/IllegalHttpConfig2.proto | 14 ++++++++++++++ .../proxy/test/IllegalHttpConfig3.proto | 14 ++++++++++++++ .../proxy/test/IllegalHttpConfig4.proto | 14 ++++++++++++++ .../proxy/test/IllegalHttpConfig5.proto | 14 ++++++++++++++ .../proxy/test/IllegalHttpConfig6.proto | 14 ++++++++++++++ .../proxy/test/IllegalHttpConfig7.proto | 14 ++++++++++++++ .../proxy/test/IllegalHttpConfig8.proto | 14 ++++++++++++++ .../proxy/test/IllegalHttpConfig9.proto | 14 ++++++++++++++ .../proxy/PathTemplateParserSpec.scala | 16 ++++++++++++++++ .../scala/io/cloudstate/proxy/WarmupSpec.scala | 16 ++++++++++++++++ .../proxy/autoscaler/AutoscalerSpec.scala | 16 ++++++++++++++++ .../proxy/crdt/AbstractCrdtEntitySpec.scala | 16 ++++++++++++++++ .../cloudstate/proxy/crdt/CrdtEntitySpec.scala | 16 ++++++++++++++++ .../proxy/crdt/FlagCrdtEntitySpec.scala | 16 ++++++++++++++++ .../proxy/crdt/GCounterCrdtEntitySpec.scala | 16 ++++++++++++++++ .../proxy/crdt/GSetCrdtEntitySpec.scala | 16 ++++++++++++++++ .../proxy/crdt/LWWRegisterCrdtEntitySpec.scala | 16 ++++++++++++++++ .../proxy/crdt/ORMapCrdtEntitySpec.scala | 16 ++++++++++++++++ .../proxy/crdt/ORSetCrdtEntitySpec.scala | 16 ++++++++++++++++ .../proxy/crdt/PNCounterCrdtEntitySpec.scala | 16 ++++++++++++++++ .../proxy/jdbc/CloudStateJdbcProxyMain.scala | 16 ++++++++++++++++ .../jdbc/SlickEnsureTablesExistReadyCheck.scala | 16 ++++++++++++++++ .../proxy/eventing/GooglePubsubSpec.scala | 16 ++++++++++++++++ .../cloudstate/proxy/stress/CrdtStressSpec.scala | 16 ++++++++++++++++ .../io/cloudstate/samples/CrdtsClient.scala | 16 ++++++++++++++++ .../cloudstate/samples/ShoppingCartClient.scala | 16 ++++++++++++++++ .../io/cloudstate/samples/pingpong/Main.java | 16 ++++++++++++++++ .../samples/pingpong/PingPongEntity.java | 16 ++++++++++++++++ .../io/cloudstate/samples/shoppingcart/Main.java | 16 ++++++++++++++++ .../samples/shoppingcart/ShoppingCartEntity.java | 16 ++++++++++++++++ .../javasupport/ClientActionContext.java | 16 ++++++++++++++++ .../io/cloudstate/javasupport/CloudState.java | 16 ++++++++++++++++ .../java/io/cloudstate/javasupport/Context.java | 16 ++++++++++++++++ .../io/cloudstate/javasupport/EffectContext.java | 16 ++++++++++++++++ .../io/cloudstate/javasupport/EntityContext.java | 16 ++++++++++++++++ .../java/io/cloudstate/javasupport/EntityId.java | 16 ++++++++++++++++ .../java/io/cloudstate/javasupport/Jsonable.java | 16 ++++++++++++++++ .../io/cloudstate/javasupport/ServiceCall.java | 16 ++++++++++++++++ .../javasupport/ServiceCallFactory.java | 16 ++++++++++++++++ .../cloudstate/javasupport/ServiceCallRef.java | 16 ++++++++++++++++ .../eventsourced/BehaviorContext.java | 16 ++++++++++++++++ .../javasupport/eventsourced/CommandContext.java | 16 ++++++++++++++++ .../javasupport/eventsourced/CommandHandler.java | 16 ++++++++++++++++ .../eventsourced/EventBehaviorContext.java | 16 ++++++++++++++++ .../javasupport/eventsourced/EventContext.java | 16 ++++++++++++++++ .../javasupport/eventsourced/EventHandler.java | 16 ++++++++++++++++ .../eventsourced/EventSourcedContext.java | 16 ++++++++++++++++ .../eventsourced/EventSourcedEntity.java | 16 ++++++++++++++++ .../EventSourcedEntityCreationContext.java | 16 ++++++++++++++++ .../eventsourced/EventSourcedEntityFactory.java | 16 ++++++++++++++++ .../eventsourced/EventSourcedEntityHandler.java | 16 ++++++++++++++++ .../javasupport/eventsourced/Snapshot.java | 16 ++++++++++++++++ .../eventsourced/SnapshotBehaviorContext.java | 16 ++++++++++++++++ .../eventsourced/SnapshotContext.java | 16 ++++++++++++++++ .../eventsourced/SnapshotHandler.java | 16 ++++++++++++++++ .../javasupport/impl/CloudStateAnnotation.java | 16 ++++++++++++++++ .../cloudstate/javasupport/impl/AnySupport.scala | 16 ++++++++++++++++ .../cloudstate/javasupport/impl/Contexts.scala | 16 ++++++++++++++++ .../javasupport/impl/ReflectionHelper.scala | 16 ++++++++++++++++ .../impl/ResolvedServiceCallFactory.scala | 16 ++++++++++++++++ .../javasupport/impl/ResolvedServiceMethod.scala | 16 ++++++++++++++++ .../AnnotationBasedEventSourcedSupport.scala | 16 ++++++++++++++++ tck/src/it/scala/io/cloudstate/tck/TCK.scala | 16 ++++++++++++++++ .../io/cloudstate/tck/TckConfiguration.scala | 16 ++++++++++++++++ .../scala/io/cloudstate/tck/TckProcesses.scala | 16 ++++++++++++++++ 182 files changed, 2838 insertions(+), 1 deletion(-) diff --git a/docs/src/test/java/docs/user/crdt/ShoppingCartEntity.java b/docs/src/test/java/docs/user/crdt/ShoppingCartEntity.java index 99068ec4f..aa148c84b 100644 --- a/docs/src/test/java/docs/user/crdt/ShoppingCartEntity.java +++ b/docs/src/test/java/docs/user/crdt/ShoppingCartEntity.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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 docs.user.crdt; import com.example.Shoppingcart; diff --git a/docs/src/test/java/docs/user/effects/ShoppingCartEntity.java b/docs/src/test/java/docs/user/effects/ShoppingCartEntity.java index 79d255b54..45837d0a9 100644 --- a/docs/src/test/java/docs/user/effects/ShoppingCartEntity.java +++ b/docs/src/test/java/docs/user/effects/ShoppingCartEntity.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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 docs.user.effects; import com.example.Hotitems; diff --git a/docs/src/test/java/docs/user/eventsourced/ShoppingCartEntity.java b/docs/src/test/java/docs/user/eventsourced/ShoppingCartEntity.java index 31ae7b3d9..6808187bf 100644 --- a/docs/src/test/java/docs/user/eventsourced/ShoppingCartEntity.java +++ b/docs/src/test/java/docs/user/eventsourced/ShoppingCartEntity.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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 docs.user.eventsourced; import com.example.Domain; diff --git a/docs/src/test/java/docs/user/eventsourced/behavior/ShoppingCartEntity.java b/docs/src/test/java/docs/user/eventsourced/behavior/ShoppingCartEntity.java index 480856079..31be5f90f 100644 --- a/docs/src/test/java/docs/user/eventsourced/behavior/ShoppingCartEntity.java +++ b/docs/src/test/java/docs/user/eventsourced/behavior/ShoppingCartEntity.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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 docs.user.eventsourced.behavior; import com.example.Domain; diff --git a/docs/src/test/java/docs/user/gettingstarted/ShoppingCartMain.java b/docs/src/test/java/docs/user/gettingstarted/ShoppingCartMain.java index d3a85c449..be0dc3bee 100644 --- a/docs/src/test/java/docs/user/gettingstarted/ShoppingCartMain.java +++ b/docs/src/test/java/docs/user/gettingstarted/ShoppingCartMain.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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 docs.user.gettingstarted; // #shopping-cart-main diff --git a/graal-tools/src/main/java/io/cloudstate/graaltools/Substitutions.java b/graal-tools/src/main/java/io/cloudstate/graaltools/Substitutions.java index 326e89cd7..160211c8c 100644 --- a/graal-tools/src/main/java/io/cloudstate/graaltools/Substitutions.java +++ b/graal-tools/src/main/java/io/cloudstate/graaltools/Substitutions.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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. + */ + // FIXME THIS FILE IS FOR PROOF-OF-CONCEPT ONLY // THESE SUBSTITUTIONS SHOULD BE PRESENT IN NETTY, IN GRPC-NETTY-SHADED, AGRONA, AND IN // PROTOBUF_JAVA. NOT HERE! diff --git a/graal-tools/src/main/scala/io/cloudstate/graaltools/AkkaActorRegisterFeature.scala b/graal-tools/src/main/scala/io/cloudstate/graaltools/AkkaActorRegisterFeature.scala index 16d9525e5..d2adcdf68 100644 --- a/graal-tools/src/main/scala/io/cloudstate/graaltools/AkkaActorRegisterFeature.scala +++ b/graal-tools/src/main/scala/io/cloudstate/graaltools/AkkaActorRegisterFeature.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.graaltools import com.oracle.svm.core.annotate.AutomaticFeature diff --git a/graal-tools/src/main/scala/io/cloudstate/graaltools/Existence.scala b/graal-tools/src/main/scala/io/cloudstate/graaltools/Existence.scala index 9451383f6..07fb90725 100644 --- a/graal-tools/src/main/scala/io/cloudstate/graaltools/Existence.scala +++ b/graal-tools/src/main/scala/io/cloudstate/graaltools/Existence.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.graaltools import java.util.function.Predicate diff --git a/graal-tools/src/main/scala/io/cloudstate/graaltools/ProtobufGeneratedMessageRegisterFeature.scala b/graal-tools/src/main/scala/io/cloudstate/graaltools/ProtobufGeneratedMessageRegisterFeature.scala index 96597d5a3..16f4d0527 100644 --- a/graal-tools/src/main/scala/io/cloudstate/graaltools/ProtobufGeneratedMessageRegisterFeature.scala +++ b/graal-tools/src/main/scala/io/cloudstate/graaltools/ProtobufGeneratedMessageRegisterFeature.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.graaltools import com.oracle.svm.core.annotate.AutomaticFeature diff --git a/java-support/src/main/java/io/cloudstate/javasupport/ClientActionContext.java b/java-support/src/main/java/io/cloudstate/javasupport/ClientActionContext.java index 0e1257a8e..e4934f315 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/ClientActionContext.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/ClientActionContext.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport; /** diff --git a/java-support/src/main/java/io/cloudstate/javasupport/CloudState.java b/java-support/src/main/java/io/cloudstate/javasupport/CloudState.java index 53f57c884..98de79740 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/CloudState.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/CloudState.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport; import com.typesafe.config.Config; diff --git a/java-support/src/main/java/io/cloudstate/javasupport/Context.java b/java-support/src/main/java/io/cloudstate/javasupport/Context.java index 5e6458397..465d06254 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/Context.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/Context.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport; /** Root class of all contexts. */ diff --git a/java-support/src/main/java/io/cloudstate/javasupport/EffectContext.java b/java-support/src/main/java/io/cloudstate/javasupport/EffectContext.java index 6814d55e6..5eeec266a 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/EffectContext.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/EffectContext.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport; /** A context that allows instructing the proxy to perform a side effect. */ diff --git a/java-support/src/main/java/io/cloudstate/javasupport/EntityContext.java b/java-support/src/main/java/io/cloudstate/javasupport/EntityContext.java index 53b7e005a..2c502751d 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/EntityContext.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/EntityContext.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport; /** diff --git a/java-support/src/main/java/io/cloudstate/javasupport/EntityFactory.java b/java-support/src/main/java/io/cloudstate/javasupport/EntityFactory.java index 4ab0b1d81..f58207468 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/EntityFactory.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/EntityFactory.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport; /** Entity factory for supporting DI environments. */ diff --git a/java-support/src/main/java/io/cloudstate/javasupport/EntityId.java b/java-support/src/main/java/io/cloudstate/javasupport/EntityId.java index 1bfa041f7..3326182da 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/EntityId.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/EntityId.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport; import io.cloudstate.javasupport.impl.CloudStateAnnotation; diff --git a/java-support/src/main/java/io/cloudstate/javasupport/Jsonable.java b/java-support/src/main/java/io/cloudstate/javasupport/Jsonable.java index de4eb6a43..e920240a2 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/Jsonable.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/Jsonable.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport; import io.cloudstate.javasupport.impl.CloudStateAnnotation; diff --git a/java-support/src/main/java/io/cloudstate/javasupport/ServiceCall.java b/java-support/src/main/java/io/cloudstate/javasupport/ServiceCall.java index da11cbd16..7f2cbd2e6 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/ServiceCall.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/ServiceCall.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport; import com.google.protobuf.Any; diff --git a/java-support/src/main/java/io/cloudstate/javasupport/ServiceCallFactory.java b/java-support/src/main/java/io/cloudstate/javasupport/ServiceCallFactory.java index 4dcddb1c7..f135e3455 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/ServiceCallFactory.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/ServiceCallFactory.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport; /** diff --git a/java-support/src/main/java/io/cloudstate/javasupport/ServiceCallRef.java b/java-support/src/main/java/io/cloudstate/javasupport/ServiceCallRef.java index 63b499466..da270b2bf 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/ServiceCallRef.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/ServiceCallRef.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport; import com.google.protobuf.Descriptors; diff --git a/java-support/src/main/java/io/cloudstate/javasupport/crdt/AbstractORMapWrapper.java b/java-support/src/main/java/io/cloudstate/javasupport/crdt/AbstractORMapWrapper.java index cadb2c079..656dc7af5 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/crdt/AbstractORMapWrapper.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/crdt/AbstractORMapWrapper.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.crdt; import java.util.*; diff --git a/java-support/src/main/java/io/cloudstate/javasupport/crdt/CommandContext.java b/java-support/src/main/java/io/cloudstate/javasupport/crdt/CommandContext.java index 048cd8b7d..5eb1c41f9 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/crdt/CommandContext.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/crdt/CommandContext.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.crdt; import io.cloudstate.javasupport.ClientActionContext; diff --git a/java-support/src/main/java/io/cloudstate/javasupport/crdt/CommandHandler.java b/java-support/src/main/java/io/cloudstate/javasupport/crdt/CommandHandler.java index f937d068b..f3a867dd3 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/crdt/CommandHandler.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/crdt/CommandHandler.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.crdt; import io.cloudstate.javasupport.impl.CloudStateAnnotation; diff --git a/java-support/src/main/java/io/cloudstate/javasupport/crdt/Crdt.java b/java-support/src/main/java/io/cloudstate/javasupport/crdt/Crdt.java index 15bcc87f7..5d56f1b64 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/crdt/Crdt.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/crdt/Crdt.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.crdt; /** Root interface for all CRDTs. */ diff --git a/java-support/src/main/java/io/cloudstate/javasupport/crdt/CrdtContext.java b/java-support/src/main/java/io/cloudstate/javasupport/crdt/CrdtContext.java index 22b3dddcd..e667bad05 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/crdt/CrdtContext.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/crdt/CrdtContext.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.crdt; import io.cloudstate.javasupport.EntityContext; diff --git a/java-support/src/main/java/io/cloudstate/javasupport/crdt/CrdtCreationContext.java b/java-support/src/main/java/io/cloudstate/javasupport/crdt/CrdtCreationContext.java index 459e918fc..a488dcaa2 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/crdt/CrdtCreationContext.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/crdt/CrdtCreationContext.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.crdt; /** diff --git a/java-support/src/main/java/io/cloudstate/javasupport/crdt/CrdtEntity.java b/java-support/src/main/java/io/cloudstate/javasupport/crdt/CrdtEntity.java index e59c28211..c7f32478b 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/crdt/CrdtEntity.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/crdt/CrdtEntity.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.crdt; import io.cloudstate.javasupport.impl.CloudStateAnnotation; diff --git a/java-support/src/main/java/io/cloudstate/javasupport/crdt/CrdtEntityFactory.java b/java-support/src/main/java/io/cloudstate/javasupport/crdt/CrdtEntityFactory.java index e81ee9854..09f5e49da 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/crdt/CrdtEntityFactory.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/crdt/CrdtEntityFactory.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.crdt; /** diff --git a/java-support/src/main/java/io/cloudstate/javasupport/crdt/CrdtEntityHandler.java b/java-support/src/main/java/io/cloudstate/javasupport/crdt/CrdtEntityHandler.java index 7069bf710..aeb2764bc 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/crdt/CrdtEntityHandler.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/crdt/CrdtEntityHandler.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.crdt; import com.google.protobuf.Any; diff --git a/java-support/src/main/java/io/cloudstate/javasupport/crdt/CrdtFactory.java b/java-support/src/main/java/io/cloudstate/javasupport/crdt/CrdtFactory.java index d8007059b..6b524909e 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/crdt/CrdtFactory.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/crdt/CrdtFactory.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.crdt; /** diff --git a/java-support/src/main/java/io/cloudstate/javasupport/crdt/Flag.java b/java-support/src/main/java/io/cloudstate/javasupport/crdt/Flag.java index cc4e6c8fd..0e065d9d0 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/crdt/Flag.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/crdt/Flag.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.crdt; /** diff --git a/java-support/src/main/java/io/cloudstate/javasupport/crdt/GCounter.java b/java-support/src/main/java/io/cloudstate/javasupport/crdt/GCounter.java index 414f3402b..02a60a8f4 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/crdt/GCounter.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/crdt/GCounter.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.crdt; /** diff --git a/java-support/src/main/java/io/cloudstate/javasupport/crdt/GSet.java b/java-support/src/main/java/io/cloudstate/javasupport/crdt/GSet.java index 940638424..0a2f84f3d 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/crdt/GSet.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/crdt/GSet.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.crdt; import java.util.Set; diff --git a/java-support/src/main/java/io/cloudstate/javasupport/crdt/LWWRegister.java b/java-support/src/main/java/io/cloudstate/javasupport/crdt/LWWRegister.java index 459301f27..87a590282 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/crdt/LWWRegister.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/crdt/LWWRegister.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.crdt; /** diff --git a/java-support/src/main/java/io/cloudstate/javasupport/crdt/LWWRegisterMap.java b/java-support/src/main/java/io/cloudstate/javasupport/crdt/LWWRegisterMap.java index 3c1038e4d..15c4351c9 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/crdt/LWWRegisterMap.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/crdt/LWWRegisterMap.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.crdt; import java.util.*; diff --git a/java-support/src/main/java/io/cloudstate/javasupport/crdt/ORMap.java b/java-support/src/main/java/io/cloudstate/javasupport/crdt/ORMap.java index a383db4a8..f080b6d63 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/crdt/ORMap.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/crdt/ORMap.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.crdt; import java.util.Map; diff --git a/java-support/src/main/java/io/cloudstate/javasupport/crdt/ORSet.java b/java-support/src/main/java/io/cloudstate/javasupport/crdt/ORSet.java index c65df59b9..7e1da6c13 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/crdt/ORSet.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/crdt/ORSet.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.crdt; import java.util.Set; diff --git a/java-support/src/main/java/io/cloudstate/javasupport/crdt/PNCounter.java b/java-support/src/main/java/io/cloudstate/javasupport/crdt/PNCounter.java index 5a0faf423..4b9a8bab8 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/crdt/PNCounter.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/crdt/PNCounter.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.crdt; /** diff --git a/java-support/src/main/java/io/cloudstate/javasupport/crdt/PNCounterMap.java b/java-support/src/main/java/io/cloudstate/javasupport/crdt/PNCounterMap.java index 52cab3b3c..ae5c50d78 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/crdt/PNCounterMap.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/crdt/PNCounterMap.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.crdt; import java.util.*; diff --git a/java-support/src/main/java/io/cloudstate/javasupport/crdt/StreamCancelledContext.java b/java-support/src/main/java/io/cloudstate/javasupport/crdt/StreamCancelledContext.java index 4816d9694..7b5aa3f05 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/crdt/StreamCancelledContext.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/crdt/StreamCancelledContext.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.crdt; import io.cloudstate.javasupport.EffectContext; diff --git a/java-support/src/main/java/io/cloudstate/javasupport/crdt/StreamedCommandContext.java b/java-support/src/main/java/io/cloudstate/javasupport/crdt/StreamedCommandContext.java index eb8dfa71e..f212f2bc9 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/crdt/StreamedCommandContext.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/crdt/StreamedCommandContext.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.crdt; import java.util.Optional; diff --git a/java-support/src/main/java/io/cloudstate/javasupport/crdt/SubscriptionContext.java b/java-support/src/main/java/io/cloudstate/javasupport/crdt/SubscriptionContext.java index 9e35d7645..ef1ac3390 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/crdt/SubscriptionContext.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/crdt/SubscriptionContext.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.crdt; import io.cloudstate.javasupport.ClientActionContext; diff --git a/java-support/src/main/java/io/cloudstate/javasupport/crdt/Vote.java b/java-support/src/main/java/io/cloudstate/javasupport/crdt/Vote.java index 61e62995c..590900776 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/crdt/Vote.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/crdt/Vote.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.crdt; /** diff --git a/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/CommandContext.java b/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/CommandContext.java index f8c0b5ccf..7c1b1b44a 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/CommandContext.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/CommandContext.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.eventsourced; import io.cloudstate.javasupport.ClientActionContext; diff --git a/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/CommandHandler.java b/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/CommandHandler.java index 0fd309e3d..8efbb7fbe 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/CommandHandler.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/CommandHandler.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.eventsourced; import io.cloudstate.javasupport.impl.CloudStateAnnotation; diff --git a/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventContext.java b/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventContext.java index 6f132b656..9ccfb0b42 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventContext.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventContext.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.eventsourced; /** Context for an event. */ diff --git a/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventHandler.java b/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventHandler.java index 202cded48..2d4aa7e22 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventHandler.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventHandler.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.eventsourced; import io.cloudstate.javasupport.impl.CloudStateAnnotation; diff --git a/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedContext.java b/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedContext.java index 56f41a881..e46a17ace 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedContext.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedContext.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.eventsourced; import io.cloudstate.javasupport.EntityContext; diff --git a/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedEntity.java b/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedEntity.java index 90a7e10eb..001904f4f 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedEntity.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedEntity.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.eventsourced; import io.cloudstate.javasupport.impl.CloudStateAnnotation; diff --git a/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedEntityCreationContext.java b/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedEntityCreationContext.java index 69d609633..7a57743ad 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedEntityCreationContext.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedEntityCreationContext.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.eventsourced; /** diff --git a/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedEntityFactory.java b/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedEntityFactory.java index 742400e44..71046bd2b 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedEntityFactory.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedEntityFactory.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.eventsourced; /** diff --git a/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedEntityHandler.java b/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedEntityHandler.java index 39c9a149a..d989a88bc 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedEntityHandler.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedEntityHandler.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.eventsourced; import com.google.protobuf.Any; diff --git a/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/Snapshot.java b/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/Snapshot.java index af29c849e..0b27f59de 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/Snapshot.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/Snapshot.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.eventsourced; import io.cloudstate.javasupport.impl.CloudStateAnnotation; diff --git a/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/SnapshotContext.java b/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/SnapshotContext.java index d83d34f12..4130169fe 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/SnapshotContext.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/SnapshotContext.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.eventsourced; /** A snapshot context. */ diff --git a/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/SnapshotHandler.java b/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/SnapshotHandler.java index c67b2c34b..5ad1ed34f 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/SnapshotHandler.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/eventsourced/SnapshotHandler.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.eventsourced; import io.cloudstate.javasupport.impl.CloudStateAnnotation; diff --git a/java-support/src/main/java/io/cloudstate/javasupport/impl/CloudStateAnnotation.java b/java-support/src/main/java/io/cloudstate/javasupport/impl/CloudStateAnnotation.java index c7df5d5db..a92c0172f 100644 --- a/java-support/src/main/java/io/cloudstate/javasupport/impl/CloudStateAnnotation.java +++ b/java-support/src/main/java/io/cloudstate/javasupport/impl/CloudStateAnnotation.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.impl; import java.lang.annotation.ElementType; diff --git a/java-support/src/main/scala/io/cloudstate/javasupport/impl/AnySupport.scala b/java-support/src/main/scala/io/cloudstate/javasupport/impl/AnySupport.scala index 26989d545..a81380fab 100644 --- a/java-support/src/main/scala/io/cloudstate/javasupport/impl/AnySupport.scala +++ b/java-support/src/main/scala/io/cloudstate/javasupport/impl/AnySupport.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.impl import java.io.ByteArrayOutputStream diff --git a/java-support/src/main/scala/io/cloudstate/javasupport/impl/Contexts.scala b/java-support/src/main/scala/io/cloudstate/javasupport/impl/Contexts.scala index 5b8323b32..b1ed1f8d6 100644 --- a/java-support/src/main/scala/io/cloudstate/javasupport/impl/Contexts.scala +++ b/java-support/src/main/scala/io/cloudstate/javasupport/impl/Contexts.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.impl import java.util.Optional diff --git a/java-support/src/main/scala/io/cloudstate/javasupport/impl/ReflectionHelper.scala b/java-support/src/main/scala/io/cloudstate/javasupport/impl/ReflectionHelper.scala index 08a8e11ee..633a72906 100644 --- a/java-support/src/main/scala/io/cloudstate/javasupport/impl/ReflectionHelper.scala +++ b/java-support/src/main/scala/io/cloudstate/javasupport/impl/ReflectionHelper.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.impl import java.lang.annotation.Annotation diff --git a/java-support/src/main/scala/io/cloudstate/javasupport/impl/ResolvedServiceCallFactory.scala b/java-support/src/main/scala/io/cloudstate/javasupport/impl/ResolvedServiceCallFactory.scala index bad047d15..99bd8598b 100644 --- a/java-support/src/main/scala/io/cloudstate/javasupport/impl/ResolvedServiceCallFactory.scala +++ b/java-support/src/main/scala/io/cloudstate/javasupport/impl/ResolvedServiceCallFactory.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.impl import io.cloudstate.javasupport.{ServiceCallFactory, ServiceCallRef, StatefulService} diff --git a/java-support/src/main/scala/io/cloudstate/javasupport/impl/ResolvedServiceMethod.scala b/java-support/src/main/scala/io/cloudstate/javasupport/impl/ResolvedServiceMethod.scala index c9b907aab..26ed9fe30 100644 --- a/java-support/src/main/scala/io/cloudstate/javasupport/impl/ResolvedServiceMethod.scala +++ b/java-support/src/main/scala/io/cloudstate/javasupport/impl/ResolvedServiceMethod.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.impl import com.fasterxml.jackson.databind.{ObjectReader, ObjectWriter} diff --git a/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/AbstractCrdtFactory.scala b/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/AbstractCrdtFactory.scala index aea887f24..40fc94f93 100644 --- a/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/AbstractCrdtFactory.scala +++ b/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/AbstractCrdtFactory.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.impl.crdt import io.cloudstate.javasupport.crdt.{ diff --git a/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/AnnotationBasedCrdtSupport.scala b/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/AnnotationBasedCrdtSupport.scala index 0ff4db870..a99cbad80 100644 --- a/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/AnnotationBasedCrdtSupport.scala +++ b/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/AnnotationBasedCrdtSupport.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.impl.crdt import java.lang.reflect.{Constructor, Executable, InvocationTargetException} diff --git a/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/CrdtStateTransformer.scala b/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/CrdtStateTransformer.scala index 96a70e493..1c6673b9f 100644 --- a/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/CrdtStateTransformer.scala +++ b/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/CrdtStateTransformer.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.impl.crdt import io.cloudstate.javasupport.impl.AnySupport diff --git a/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/FlagImpl.scala b/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/FlagImpl.scala index 5d6a3923a..26699cfa8 100644 --- a/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/FlagImpl.scala +++ b/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/FlagImpl.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.impl.crdt import io.cloudstate.javasupport.crdt.Flag diff --git a/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/GCounterImpl.scala b/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/GCounterImpl.scala index e225ef6e3..18e847033 100644 --- a/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/GCounterImpl.scala +++ b/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/GCounterImpl.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.impl.crdt import io.cloudstate.javasupport.crdt.GCounter diff --git a/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/GSetImpl.scala b/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/GSetImpl.scala index 08f4a32cc..f0a7680a0 100644 --- a/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/GSetImpl.scala +++ b/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/GSetImpl.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.impl.crdt import java.util diff --git a/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/InternalCrdt.scala b/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/InternalCrdt.scala index bc16d650f..f8993a770 100644 --- a/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/InternalCrdt.scala +++ b/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/InternalCrdt.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.impl.crdt import io.cloudstate.javasupport.crdt.Crdt diff --git a/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/LWWRegisterImpl.scala b/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/LWWRegisterImpl.scala index f9daf2f68..99095d3c0 100644 --- a/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/LWWRegisterImpl.scala +++ b/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/LWWRegisterImpl.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.impl.crdt import java.util.Objects diff --git a/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/ORMapImpl.scala b/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/ORMapImpl.scala index 0a867ede4..13ea1c3be 100644 --- a/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/ORMapImpl.scala +++ b/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/ORMapImpl.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.impl.crdt import java.util diff --git a/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/ORSetImpl.scala b/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/ORSetImpl.scala index ac265e5f8..333e542a2 100644 --- a/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/ORSetImpl.scala +++ b/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/ORSetImpl.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.impl.crdt import java.util diff --git a/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/PNCounterImpl.scala b/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/PNCounterImpl.scala index aa809a4f3..f4f46474d 100644 --- a/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/PNCounterImpl.scala +++ b/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/PNCounterImpl.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.impl.crdt import io.cloudstate.javasupport.crdt.PNCounter diff --git a/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/VoteImpl.scala b/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/VoteImpl.scala index a6078dfcf..41ab72b03 100644 --- a/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/VoteImpl.scala +++ b/java-support/src/main/scala/io/cloudstate/javasupport/impl/crdt/VoteImpl.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.impl.crdt import io.cloudstate.javasupport.crdt.Vote diff --git a/java-support/src/main/scala/io/cloudstate/javasupport/impl/eventsourced/AnnotationBasedEventSourcedSupport.scala b/java-support/src/main/scala/io/cloudstate/javasupport/impl/eventsourced/AnnotationBasedEventSourcedSupport.scala index d3b132b66..8f4f05dd5 100644 --- a/java-support/src/main/scala/io/cloudstate/javasupport/impl/eventsourced/AnnotationBasedEventSourcedSupport.scala +++ b/java-support/src/main/scala/io/cloudstate/javasupport/impl/eventsourced/AnnotationBasedEventSourcedSupport.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.impl.eventsourced import java.lang.reflect.{Constructor, InvocationTargetException, Method} diff --git a/java-support/src/test/scala/io/cloudstate/javasupport/impl/AnySupportSpec.scala b/java-support/src/test/scala/io/cloudstate/javasupport/impl/AnySupportSpec.scala index bad93b2a4..455ef99c6 100644 --- a/java-support/src/test/scala/io/cloudstate/javasupport/impl/AnySupportSpec.scala +++ b/java-support/src/test/scala/io/cloudstate/javasupport/impl/AnySupportSpec.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.impl import com.example.shoppingcart.Shoppingcart diff --git a/java-support/src/test/scala/io/cloudstate/javasupport/impl/crdt/AnnotationBasedCrdtSupportSpec.scala b/java-support/src/test/scala/io/cloudstate/javasupport/impl/crdt/AnnotationBasedCrdtSupportSpec.scala index ca51c7847..4a0ea6845 100644 --- a/java-support/src/test/scala/io/cloudstate/javasupport/impl/crdt/AnnotationBasedCrdtSupportSpec.scala +++ b/java-support/src/test/scala/io/cloudstate/javasupport/impl/crdt/AnnotationBasedCrdtSupportSpec.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.impl.crdt import java.util.Optional diff --git a/java-support/src/test/scala/io/cloudstate/javasupport/impl/eventsourced/AnnotationBasedEventSourcedSupportSpec.scala b/java-support/src/test/scala/io/cloudstate/javasupport/impl/eventsourced/AnnotationBasedEventSourcedSupportSpec.scala index c5939b9b9..79526df43 100644 --- a/java-support/src/test/scala/io/cloudstate/javasupport/impl/eventsourced/AnnotationBasedEventSourcedSupportSpec.scala +++ b/java-support/src/test/scala/io/cloudstate/javasupport/impl/eventsourced/AnnotationBasedEventSourcedSupportSpec.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.impl.eventsourced import java.util.Optional diff --git a/node-support/index.js b/node-support/index.js index ef2480136..7971e2501 100644 --- a/node-support/index.js +++ b/node-support/index.js @@ -14,7 +14,6 @@ * limitations under the License. */ - /** * The CloudState module. * diff --git a/node-support/src/stateless-support.js b/node-support/src/stateless-support.js index 9ba8e455e..1893cc305 100644 --- a/node-support/src/stateless-support.js +++ b/node-support/src/stateless-support.js @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + const path = require("path"); const grpc = require("grpc"); const protoLoader = require("@grpc/proto-loader"); diff --git a/operator/src/main/scala/io/cloudstate/operator/OperatorConfig.scala b/operator/src/main/scala/io/cloudstate/operator/OperatorConfig.scala index 485a8c7a6..63a419d3f 100644 --- a/operator/src/main/scala/io/cloudstate/operator/OperatorConfig.scala +++ b/operator/src/main/scala/io/cloudstate/operator/OperatorConfig.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.operator import com.typesafe.config.Config diff --git a/operator/src/main/scala/io/cloudstate/operator/ResourceHelper.scala b/operator/src/main/scala/io/cloudstate/operator/ResourceHelper.scala index f24b15e9e..33cba5cb7 100644 --- a/operator/src/main/scala/io/cloudstate/operator/ResourceHelper.scala +++ b/operator/src/main/scala/io/cloudstate/operator/ResourceHelper.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.operator import play.api.libs.json.Format diff --git a/operator/src/main/scala/io/cloudstate/operator/StatefulService.scala b/operator/src/main/scala/io/cloudstate/operator/StatefulService.scala index 35490af0e..ca35dd6e9 100644 --- a/operator/src/main/scala/io/cloudstate/operator/StatefulService.scala +++ b/operator/src/main/scala/io/cloudstate/operator/StatefulService.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.operator import java.time.ZonedDateTime diff --git a/operator/src/main/scala/io/cloudstate/operator/Validated.scala b/operator/src/main/scala/io/cloudstate/operator/Validated.scala index 84fad8660..a351bfca9 100644 --- a/operator/src/main/scala/io/cloudstate/operator/Validated.scala +++ b/operator/src/main/scala/io/cloudstate/operator/Validated.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.operator import java.time.ZonedDateTime diff --git a/operator/src/main/scala/io/cloudstate/operator/Watcher.scala b/operator/src/main/scala/io/cloudstate/operator/Watcher.scala index a827c0efb..8738b628e 100644 --- a/operator/src/main/scala/io/cloudstate/operator/Watcher.scala +++ b/operator/src/main/scala/io/cloudstate/operator/Watcher.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.operator import akka.{Done, NotUsed} diff --git a/operator/src/main/scala/io/cloudstate/operator/stores/CassandraStoreSupport.scala b/operator/src/main/scala/io/cloudstate/operator/stores/CassandraStoreSupport.scala index 1cc50ec6c..ea7827412 100644 --- a/operator/src/main/scala/io/cloudstate/operator/stores/CassandraStoreSupport.scala +++ b/operator/src/main/scala/io/cloudstate/operator/stores/CassandraStoreSupport.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.operator.stores import io.cloudstate.operator.{Condition, ImageConfig, OperatorConstants, StatefulStore, Validated} import skuber.api.client.KubernetesClient diff --git a/operator/src/main/scala/io/cloudstate/operator/stores/CredentialsHelper.scala b/operator/src/main/scala/io/cloudstate/operator/stores/CredentialsHelper.scala index 8d8ac0d1b..df9df37a0 100644 --- a/operator/src/main/scala/io/cloudstate/operator/stores/CredentialsHelper.scala +++ b/operator/src/main/scala/io/cloudstate/operator/stores/CredentialsHelper.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.operator.stores import play.api.libs.json._ diff --git a/operator/src/main/scala/io/cloudstate/operator/stores/InMemoryStoreSupport.scala b/operator/src/main/scala/io/cloudstate/operator/stores/InMemoryStoreSupport.scala index 0dbd03d82..d37149ca6 100644 --- a/operator/src/main/scala/io/cloudstate/operator/stores/InMemoryStoreSupport.scala +++ b/operator/src/main/scala/io/cloudstate/operator/stores/InMemoryStoreSupport.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.operator.stores import io.cloudstate.operator.StatefulStore.Resource import io.cloudstate.operator.{Condition, ImageConfig, OperatorConstants, StatefulStore, Validated} diff --git a/operator/src/main/scala/io/cloudstate/operator/stores/PostgresStoreSupport.scala b/operator/src/main/scala/io/cloudstate/operator/stores/PostgresStoreSupport.scala index 3d83b4bb3..cecfdc398 100644 --- a/operator/src/main/scala/io/cloudstate/operator/stores/PostgresStoreSupport.scala +++ b/operator/src/main/scala/io/cloudstate/operator/stores/PostgresStoreSupport.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.operator.stores import io.cloudstate.operator.OperatorConstants.{StatefulStoreConditionType, UnmanagedStatefulStoreDeployment} import io.cloudstate.operator.StatefulStore.Resource diff --git a/operator/src/main/scala/io/cloudstate/operator/stores/StatefulStoreSupport.scala b/operator/src/main/scala/io/cloudstate/operator/stores/StatefulStoreSupport.scala index 3d9116caa..9b2c330c4 100644 --- a/operator/src/main/scala/io/cloudstate/operator/stores/StatefulStoreSupport.scala +++ b/operator/src/main/scala/io/cloudstate/operator/stores/StatefulStoreSupport.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.operator.stores import akka.Done diff --git a/protocols/example/crdts/crdt-example.proto b/protocols/example/crdts/crdt-example.proto index a1054bf89..5fafea86b 100644 --- a/protocols/example/crdts/crdt-example.proto +++ b/protocols/example/crdts/crdt-example.proto @@ -1,3 +1,17 @@ +// Copyright 2019 Lightbend Inc. +// +// 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. + syntax = "proto3"; import "cloudstate/entity_key.proto"; diff --git a/protocols/example/shoppingcart/persistence/domain.proto b/protocols/example/shoppingcart/persistence/domain.proto index c827b802e..96721de59 100644 --- a/protocols/example/shoppingcart/persistence/domain.proto +++ b/protocols/example/shoppingcart/persistence/domain.proto @@ -1,3 +1,17 @@ +// Copyright 2019 Lightbend Inc. +// +// 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. + // These are the messages that get persisted - the events, plus the current state (Cart) for snapshots. syntax = "proto3"; diff --git a/protocols/example/shoppingcart/shoppingcart.proto b/protocols/example/shoppingcart/shoppingcart.proto index 27e1baf54..5befa5fe4 100644 --- a/protocols/example/shoppingcart/shoppingcart.proto +++ b/protocols/example/shoppingcart/shoppingcart.proto @@ -1,3 +1,17 @@ +// Copyright 2019 Lightbend Inc. +// +// 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. + // This is the public API offered by the shopping cart entity. syntax = "proto3"; diff --git a/proxy/core/src/main/scala/io/cloudstate/proxy/FileDescriptorBuilder.scala b/proxy/core/src/main/scala/io/cloudstate/proxy/FileDescriptorBuilder.scala index fc4f16fd7..a2b2e84e8 100644 --- a/proxy/core/src/main/scala/io/cloudstate/proxy/FileDescriptorBuilder.scala +++ b/proxy/core/src/main/scala/io/cloudstate/proxy/FileDescriptorBuilder.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy import com.google.protobuf.DescriptorProtos diff --git a/proxy/core/src/main/scala/io/cloudstate/proxy/GrpcWebSupport.scala b/proxy/core/src/main/scala/io/cloudstate/proxy/GrpcWebSupport.scala index e5b9c7f11..4ab8f2058 100644 --- a/proxy/core/src/main/scala/io/cloudstate/proxy/GrpcWebSupport.scala +++ b/proxy/core/src/main/scala/io/cloudstate/proxy/GrpcWebSupport.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy import java.util.Base64 diff --git a/proxy/core/src/main/scala/io/cloudstate/proxy/ProtobufAnySerializer.scala b/proxy/core/src/main/scala/io/cloudstate/proxy/ProtobufAnySerializer.scala index bf7b912a3..f272068fc 100644 --- a/proxy/core/src/main/scala/io/cloudstate/proxy/ProtobufAnySerializer.scala +++ b/proxy/core/src/main/scala/io/cloudstate/proxy/ProtobufAnySerializer.scala @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.cloudstate.proxy import akka.serialization.{BaseSerializer, SerializerWithStringManifest} diff --git a/proxy/core/src/main/scala/io/cloudstate/proxy/UserFunctionRouter.scala b/proxy/core/src/main/scala/io/cloudstate/proxy/UserFunctionRouter.scala index dae5ee3bb..e4e2c082b 100644 --- a/proxy/core/src/main/scala/io/cloudstate/proxy/UserFunctionRouter.scala +++ b/proxy/core/src/main/scala/io/cloudstate/proxy/UserFunctionRouter.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy import akka.NotUsed diff --git a/proxy/core/src/main/scala/io/cloudstate/proxy/UserFunctionTypeSupport.scala b/proxy/core/src/main/scala/io/cloudstate/proxy/UserFunctionTypeSupport.scala index a75fccc92..7a163a758 100644 --- a/proxy/core/src/main/scala/io/cloudstate/proxy/UserFunctionTypeSupport.scala +++ b/proxy/core/src/main/scala/io/cloudstate/proxy/UserFunctionTypeSupport.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy import akka.NotUsed diff --git a/proxy/core/src/main/scala/io/cloudstate/proxy/autoscaler/Autoscaler.scala b/proxy/core/src/main/scala/io/cloudstate/proxy/autoscaler/Autoscaler.scala index 6219ea15a..78ac5f9f3 100644 --- a/proxy/core/src/main/scala/io/cloudstate/proxy/autoscaler/Autoscaler.scala +++ b/proxy/core/src/main/scala/io/cloudstate/proxy/autoscaler/Autoscaler.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy.autoscaler import akka.actor.{ diff --git a/proxy/core/src/main/scala/io/cloudstate/proxy/autoscaler/KubernetesDeploymentScaler.scala b/proxy/core/src/main/scala/io/cloudstate/proxy/autoscaler/KubernetesDeploymentScaler.scala index 646923329..3bddd870e 100644 --- a/proxy/core/src/main/scala/io/cloudstate/proxy/autoscaler/KubernetesDeploymentScaler.scala +++ b/proxy/core/src/main/scala/io/cloudstate/proxy/autoscaler/KubernetesDeploymentScaler.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy.autoscaler import java.nio.file.{Files, Paths} diff --git a/proxy/core/src/main/scala/io/cloudstate/proxy/autoscaler/NoAutoscaler.scala b/proxy/core/src/main/scala/io/cloudstate/proxy/autoscaler/NoAutoscaler.scala index dd2d85d6c..4b09f9a1f 100644 --- a/proxy/core/src/main/scala/io/cloudstate/proxy/autoscaler/NoAutoscaler.scala +++ b/proxy/core/src/main/scala/io/cloudstate/proxy/autoscaler/NoAutoscaler.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy.autoscaler import akka.actor.Actor diff --git a/proxy/core/src/main/scala/io/cloudstate/proxy/autoscaler/NoScaler.scala b/proxy/core/src/main/scala/io/cloudstate/proxy/autoscaler/NoScaler.scala index 96b36ed78..abc5dc139 100644 --- a/proxy/core/src/main/scala/io/cloudstate/proxy/autoscaler/NoScaler.scala +++ b/proxy/core/src/main/scala/io/cloudstate/proxy/autoscaler/NoScaler.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy.autoscaler import akka.actor.{Actor, ActorLogging, ActorRef} diff --git a/proxy/core/src/main/scala/io/cloudstate/proxy/crdt/CrdtEntity.scala b/proxy/core/src/main/scala/io/cloudstate/proxy/crdt/CrdtEntity.scala index e4ba630e7..44eaf2a39 100644 --- a/proxy/core/src/main/scala/io/cloudstate/proxy/crdt/CrdtEntity.scala +++ b/proxy/core/src/main/scala/io/cloudstate/proxy/crdt/CrdtEntity.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy.crdt import java.net.URLDecoder diff --git a/proxy/core/src/main/scala/io/cloudstate/proxy/crdt/CrdtEntityManager.scala b/proxy/core/src/main/scala/io/cloudstate/proxy/crdt/CrdtEntityManager.scala index 4dd32a0f0..a8e857f55 100644 --- a/proxy/core/src/main/scala/io/cloudstate/proxy/crdt/CrdtEntityManager.scala +++ b/proxy/core/src/main/scala/io/cloudstate/proxy/crdt/CrdtEntityManager.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy.crdt import java.net.URLEncoder diff --git a/proxy/core/src/main/scala/io/cloudstate/proxy/crdt/CrdtSerializers.scala b/proxy/core/src/main/scala/io/cloudstate/proxy/crdt/CrdtSerializers.scala index a2e8de7ce..f6f3b9c19 100644 --- a/proxy/core/src/main/scala/io/cloudstate/proxy/crdt/CrdtSerializers.scala +++ b/proxy/core/src/main/scala/io/cloudstate/proxy/crdt/CrdtSerializers.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy.crdt import akka.actor.{AddressFromURIString, ExtendedActorSystem} diff --git a/proxy/core/src/main/scala/io/cloudstate/proxy/crdt/CrdtSupportFactory.scala b/proxy/core/src/main/scala/io/cloudstate/proxy/crdt/CrdtSupportFactory.scala index 847fbe638..72589e27a 100644 --- a/proxy/core/src/main/scala/io/cloudstate/proxy/crdt/CrdtSupportFactory.scala +++ b/proxy/core/src/main/scala/io/cloudstate/proxy/crdt/CrdtSupportFactory.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy.crdt import java.net.URLEncoder diff --git a/proxy/core/src/main/scala/io/cloudstate/proxy/crdt/NodeVector.scala b/proxy/core/src/main/scala/io/cloudstate/proxy/crdt/NodeVector.scala index 60f7e1ff0..2a6d32422 100644 --- a/proxy/core/src/main/scala/io/cloudstate/proxy/crdt/NodeVector.scala +++ b/proxy/core/src/main/scala/io/cloudstate/proxy/crdt/NodeVector.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy.crdt import akka.cluster.UniqueAddress diff --git a/proxy/core/src/main/scala/io/cloudstate/proxy/crdt/UserFunctionProtocolError.scala b/proxy/core/src/main/scala/io/cloudstate/proxy/crdt/UserFunctionProtocolError.scala index 0d6a6de0e..f9e457c2b 100644 --- a/proxy/core/src/main/scala/io/cloudstate/proxy/crdt/UserFunctionProtocolError.scala +++ b/proxy/core/src/main/scala/io/cloudstate/proxy/crdt/UserFunctionProtocolError.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy.crdt private[crdt] case class UserFunctionProtocolError(message: String) diff --git a/proxy/core/src/main/scala/io/cloudstate/proxy/crdt/Vote.scala b/proxy/core/src/main/scala/io/cloudstate/proxy/crdt/Vote.scala index f577f7329..16c246825 100644 --- a/proxy/core/src/main/scala/io/cloudstate/proxy/crdt/Vote.scala +++ b/proxy/core/src/main/scala/io/cloudstate/proxy/crdt/Vote.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy.crdt import akka.cluster.ClusterEvent.CurrentClusterState diff --git a/proxy/core/src/main/scala/io/cloudstate/proxy/crdt/WireTransformer.scala b/proxy/core/src/main/scala/io/cloudstate/proxy/crdt/WireTransformer.scala index 0e96a8f48..9884f69bd 100644 --- a/proxy/core/src/main/scala/io/cloudstate/proxy/crdt/WireTransformer.scala +++ b/proxy/core/src/main/scala/io/cloudstate/proxy/crdt/WireTransformer.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy.crdt import akka.cluster.ClusterEvent.CurrentClusterState diff --git a/proxy/core/src/main/scala/io/cloudstate/proxy/eventing/EventingManager.scala b/proxy/core/src/main/scala/io/cloudstate/proxy/eventing/EventingManager.scala index c3ec5de77..1a63c0c50 100644 --- a/proxy/core/src/main/scala/io/cloudstate/proxy/eventing/EventingManager.scala +++ b/proxy/core/src/main/scala/io/cloudstate/proxy/eventing/EventingManager.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy.eventing import akka.{Done, NotUsed} diff --git a/proxy/core/src/main/scala/io/cloudstate/proxy/eventing/GooglePubsubEventing.scala b/proxy/core/src/main/scala/io/cloudstate/proxy/eventing/GooglePubsubEventing.scala index 20efb7820..12ccd659c 100644 --- a/proxy/core/src/main/scala/io/cloudstate/proxy/eventing/GooglePubsubEventing.scala +++ b/proxy/core/src/main/scala/io/cloudstate/proxy/eventing/GooglePubsubEventing.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy.eventing import com.typesafe.config.{Config, ConfigFactory} diff --git a/proxy/core/src/main/scala/io/cloudstate/proxy/eventsourced/DynamicLeastShardAllocationStrategy.scala b/proxy/core/src/main/scala/io/cloudstate/proxy/eventsourced/DynamicLeastShardAllocationStrategy.scala index 828d1c5a5..ec21f592c 100644 --- a/proxy/core/src/main/scala/io/cloudstate/proxy/eventsourced/DynamicLeastShardAllocationStrategy.scala +++ b/proxy/core/src/main/scala/io/cloudstate/proxy/eventsourced/DynamicLeastShardAllocationStrategy.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy.eventsourced import akka.actor.ActorRef diff --git a/proxy/core/src/main/scala/io/cloudstate/proxy/eventsourced/EventSourcedSupportFactory.scala b/proxy/core/src/main/scala/io/cloudstate/proxy/eventsourced/EventSourcedSupportFactory.scala index 4e9cf8f9a..13a85be08 100644 --- a/proxy/core/src/main/scala/io/cloudstate/proxy/eventsourced/EventSourcedSupportFactory.scala +++ b/proxy/core/src/main/scala/io/cloudstate/proxy/eventsourced/EventSourcedSupportFactory.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy.eventsourced import akka.NotUsed diff --git a/proxy/core/src/main/scala/io/cloudstate/proxy/function/StatelessFunctionSupportFactory.scala b/proxy/core/src/main/scala/io/cloudstate/proxy/function/StatelessFunctionSupportFactory.scala index dcf7486cb..383452998 100644 --- a/proxy/core/src/main/scala/io/cloudstate/proxy/function/StatelessFunctionSupportFactory.scala +++ b/proxy/core/src/main/scala/io/cloudstate/proxy/function/StatelessFunctionSupportFactory.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy.function import akka.NotUsed diff --git a/proxy/core/src/test/proto/cloudstate/proxy/test/HttpApiTest.proto b/proxy/core/src/test/proto/cloudstate/proxy/test/HttpApiTest.proto index b378f2aa9..130bccd86 100644 --- a/proxy/core/src/test/proto/cloudstate/proxy/test/HttpApiTest.proto +++ b/proxy/core/src/test/proto/cloudstate/proxy/test/HttpApiTest.proto @@ -1,3 +1,17 @@ +// Copyright 2019 Lightbend Inc. +// +// 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. + // This is the public API offered by the shopping cart entity. syntax = "proto3"; diff --git a/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig0.proto b/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig0.proto index de205dedd..71c79c38d 100644 --- a/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig0.proto +++ b/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig0.proto @@ -1,3 +1,17 @@ +// Copyright 2019 Lightbend Inc. +// +// 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. + // This is the public API offered by the shopping cart entity. syntax = "proto3"; diff --git a/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig1.proto b/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig1.proto index 89415d919..0a96db463 100644 --- a/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig1.proto +++ b/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig1.proto @@ -1,3 +1,17 @@ +// Copyright 2019 Lightbend Inc. +// +// 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. + // This is the public API offered by the shopping cart entity. syntax = "proto3"; diff --git a/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig2.proto b/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig2.proto index 952e472bd..2db08a75c 100644 --- a/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig2.proto +++ b/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig2.proto @@ -1,3 +1,17 @@ +// Copyright 2019 Lightbend Inc. +// +// 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. + // This is the public API offered by the shopping cart entity. syntax = "proto3"; diff --git a/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig3.proto b/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig3.proto index 058ba3767..002f55c95 100644 --- a/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig3.proto +++ b/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig3.proto @@ -1,3 +1,17 @@ +// Copyright 2019 Lightbend Inc. +// +// 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. + // This is the public API offered by the shopping cart entity. syntax = "proto3"; diff --git a/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig4.proto b/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig4.proto index f65b05f9e..7ee010501 100644 --- a/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig4.proto +++ b/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig4.proto @@ -1,3 +1,17 @@ +// Copyright 2019 Lightbend Inc. +// +// 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. + // This is the public API offered by the shopping cart entity. syntax = "proto3"; diff --git a/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig5.proto b/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig5.proto index 0ed1f83c1..c24085507 100644 --- a/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig5.proto +++ b/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig5.proto @@ -1,3 +1,17 @@ +// Copyright 2019 Lightbend Inc. +// +// 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. + // This is the public API offered by the shopping cart entity. syntax = "proto3"; diff --git a/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig6.proto b/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig6.proto index 944b09fd4..d6238850d 100644 --- a/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig6.proto +++ b/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig6.proto @@ -1,3 +1,17 @@ +// Copyright 2019 Lightbend Inc. +// +// 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. + // This is the public API offered by the shopping cart entity. syntax = "proto3"; diff --git a/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig7.proto b/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig7.proto index 0916332ab..7b2ad24ed 100644 --- a/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig7.proto +++ b/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig7.proto @@ -1,3 +1,17 @@ +// Copyright 2019 Lightbend Inc. +// +// 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. + // This is the public API offered by the shopping cart entity. syntax = "proto3"; diff --git a/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig8.proto b/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig8.proto index 8923e9714..b63d5918d 100644 --- a/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig8.proto +++ b/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig8.proto @@ -1,3 +1,17 @@ +// Copyright 2019 Lightbend Inc. +// +// 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. + // This is the public API offered by the shopping cart entity. syntax = "proto3"; diff --git a/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig9.proto b/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig9.proto index dbc4d12c9..3a05c10cc 100644 --- a/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig9.proto +++ b/proxy/core/src/test/proto/cloudstate/proxy/test/IllegalHttpConfig9.proto @@ -1,3 +1,17 @@ +// Copyright 2019 Lightbend Inc. +// +// 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. + // This is the public API offered by the shopping cart entity. syntax = "proto3"; diff --git a/proxy/core/src/test/scala/io/cloudstate/proxy/PathTemplateParserSpec.scala b/proxy/core/src/test/scala/io/cloudstate/proxy/PathTemplateParserSpec.scala index 73d609c6d..b06e7aa73 100644 --- a/proxy/core/src/test/scala/io/cloudstate/proxy/PathTemplateParserSpec.scala +++ b/proxy/core/src/test/scala/io/cloudstate/proxy/PathTemplateParserSpec.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy import io.cloudstate.proxy.PathTemplateParser.{PathTemplateParseException, TemplateVariable} diff --git a/proxy/core/src/test/scala/io/cloudstate/proxy/WarmupSpec.scala b/proxy/core/src/test/scala/io/cloudstate/proxy/WarmupSpec.scala index 2f390d54f..00a53cad1 100644 --- a/proxy/core/src/test/scala/io/cloudstate/proxy/WarmupSpec.scala +++ b/proxy/core/src/test/scala/io/cloudstate/proxy/WarmupSpec.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy import akka.actor.ActorSystem diff --git a/proxy/core/src/test/scala/io/cloudstate/proxy/autoscaler/AutoscalerSpec.scala b/proxy/core/src/test/scala/io/cloudstate/proxy/autoscaler/AutoscalerSpec.scala index ed58dd627..b9cbb8d16 100644 --- a/proxy/core/src/test/scala/io/cloudstate/proxy/autoscaler/AutoscalerSpec.scala +++ b/proxy/core/src/test/scala/io/cloudstate/proxy/autoscaler/AutoscalerSpec.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy.autoscaler import akka.actor.{ActorRef, ActorSystem, Address, PoisonPill} diff --git a/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/AbstractCrdtEntitySpec.scala b/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/AbstractCrdtEntitySpec.scala index a8660bcff..95b3942b3 100644 --- a/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/AbstractCrdtEntitySpec.scala +++ b/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/AbstractCrdtEntitySpec.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy.crdt import akka.NotUsed diff --git a/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/CrdtEntitySpec.scala b/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/CrdtEntitySpec.scala index 88ec619c0..fe5c5dfe1 100644 --- a/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/CrdtEntitySpec.scala +++ b/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/CrdtEntitySpec.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy.crdt import akka.actor.PoisonPill diff --git a/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/FlagCrdtEntitySpec.scala b/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/FlagCrdtEntitySpec.scala index 166dab2f5..35baad76f 100644 --- a/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/FlagCrdtEntitySpec.scala +++ b/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/FlagCrdtEntitySpec.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy.crdt import akka.cluster.ddata.{Flag, FlagKey, GCounter, GCounterKey} diff --git a/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/GCounterCrdtEntitySpec.scala b/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/GCounterCrdtEntitySpec.scala index db1e329bf..c37a248d7 100644 --- a/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/GCounterCrdtEntitySpec.scala +++ b/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/GCounterCrdtEntitySpec.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy.crdt import akka.cluster.ddata.{GCounter, GCounterKey} diff --git a/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/GSetCrdtEntitySpec.scala b/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/GSetCrdtEntitySpec.scala index 11954ba4b..e020873b9 100644 --- a/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/GSetCrdtEntitySpec.scala +++ b/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/GSetCrdtEntitySpec.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy.crdt import akka.cluster.ddata.{GSet, GSetKey} diff --git a/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/LWWRegisterCrdtEntitySpec.scala b/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/LWWRegisterCrdtEntitySpec.scala index 288cf285a..da02b8ce5 100644 --- a/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/LWWRegisterCrdtEntitySpec.scala +++ b/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/LWWRegisterCrdtEntitySpec.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy.crdt import akka.cluster.ddata.{LWWRegister, LWWRegisterKey} diff --git a/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/ORMapCrdtEntitySpec.scala b/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/ORMapCrdtEntitySpec.scala index de128c450..90bbd2544 100644 --- a/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/ORMapCrdtEntitySpec.scala +++ b/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/ORMapCrdtEntitySpec.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy.crdt import akka.cluster.ddata.{GCounter, ORMap, ORMapKey, PNCounter, ReplicatedData} diff --git a/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/ORSetCrdtEntitySpec.scala b/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/ORSetCrdtEntitySpec.scala index fc221afb0..f47314745 100644 --- a/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/ORSetCrdtEntitySpec.scala +++ b/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/ORSetCrdtEntitySpec.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy.crdt import akka.cluster.ddata.{ORSet, ORSetKey} diff --git a/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/PNCounterCrdtEntitySpec.scala b/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/PNCounterCrdtEntitySpec.scala index 1dd328371..0f5a7a1f2 100644 --- a/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/PNCounterCrdtEntitySpec.scala +++ b/proxy/core/src/test/scala/io/cloudstate/proxy/crdt/PNCounterCrdtEntitySpec.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy.crdt import akka.cluster.ddata.{PNCounter, PNCounterKey} diff --git a/proxy/jdbc/src/main/scala/io/cloudstate/proxy/jdbc/CloudStateJdbcProxyMain.scala b/proxy/jdbc/src/main/scala/io/cloudstate/proxy/jdbc/CloudStateJdbcProxyMain.scala index b87b2a7bc..4e9b211af 100644 --- a/proxy/jdbc/src/main/scala/io/cloudstate/proxy/jdbc/CloudStateJdbcProxyMain.scala +++ b/proxy/jdbc/src/main/scala/io/cloudstate/proxy/jdbc/CloudStateJdbcProxyMain.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy.jdbc import io.cloudstate.proxy.CloudStateProxyMain diff --git a/proxy/jdbc/src/main/scala/io/cloudstate/proxy/jdbc/SlickEnsureTablesExistReadyCheck.scala b/proxy/jdbc/src/main/scala/io/cloudstate/proxy/jdbc/SlickEnsureTablesExistReadyCheck.scala index 084ee3096..5e76fbea7 100644 --- a/proxy/jdbc/src/main/scala/io/cloudstate/proxy/jdbc/SlickEnsureTablesExistReadyCheck.scala +++ b/proxy/jdbc/src/main/scala/io/cloudstate/proxy/jdbc/SlickEnsureTablesExistReadyCheck.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy.jdbc import java.sql.Connection diff --git a/proxy/proxy-tests/src/test/scala/io/cloudstate/proxy/eventing/GooglePubsubSpec.scala b/proxy/proxy-tests/src/test/scala/io/cloudstate/proxy/eventing/GooglePubsubSpec.scala index 0293d4bcd..df32cb144 100644 --- a/proxy/proxy-tests/src/test/scala/io/cloudstate/proxy/eventing/GooglePubsubSpec.scala +++ b/proxy/proxy-tests/src/test/scala/io/cloudstate/proxy/eventing/GooglePubsubSpec.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy.eventing import java.net.ServerSocket diff --git a/proxy/proxy-tests/src/test/scala/io/cloudstate/proxy/stress/CrdtStressSpec.scala b/proxy/proxy-tests/src/test/scala/io/cloudstate/proxy/stress/CrdtStressSpec.scala index 0283eeabd..694cb7663 100644 --- a/proxy/proxy-tests/src/test/scala/io/cloudstate/proxy/stress/CrdtStressSpec.scala +++ b/proxy/proxy-tests/src/test/scala/io/cloudstate/proxy/stress/CrdtStressSpec.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.proxy.stress import java.io.File diff --git a/samples/akka-client/src/main/scala/io/cloudstate/samples/CrdtsClient.scala b/samples/akka-client/src/main/scala/io/cloudstate/samples/CrdtsClient.scala index 5dec1dc4b..47cd87004 100644 --- a/samples/akka-client/src/main/scala/io/cloudstate/samples/CrdtsClient.scala +++ b/samples/akka-client/src/main/scala/io/cloudstate/samples/CrdtsClient.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.samples import akka.actor.ActorSystem diff --git a/samples/akka-client/src/main/scala/io/cloudstate/samples/ShoppingCartClient.scala b/samples/akka-client/src/main/scala/io/cloudstate/samples/ShoppingCartClient.scala index 71c01f1c6..c678eb228 100644 --- a/samples/akka-client/src/main/scala/io/cloudstate/samples/ShoppingCartClient.scala +++ b/samples/akka-client/src/main/scala/io/cloudstate/samples/ShoppingCartClient.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.samples import akka.actor.ActorSystem diff --git a/samples/java-pingpong/src/main/java/io/cloudstate/samples/pingpong/Main.java b/samples/java-pingpong/src/main/java/io/cloudstate/samples/pingpong/Main.java index 82be1d192..0d6df807a 100644 --- a/samples/java-pingpong/src/main/java/io/cloudstate/samples/pingpong/Main.java +++ b/samples/java-pingpong/src/main/java/io/cloudstate/samples/pingpong/Main.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.samples.pingpong; import io.cloudstate.javasupport.CloudState; diff --git a/samples/java-pingpong/src/main/java/io/cloudstate/samples/pingpong/PingPongEntity.java b/samples/java-pingpong/src/main/java/io/cloudstate/samples/pingpong/PingPongEntity.java index d4a5f800e..31851ccac 100644 --- a/samples/java-pingpong/src/main/java/io/cloudstate/samples/pingpong/PingPongEntity.java +++ b/samples/java-pingpong/src/main/java/io/cloudstate/samples/pingpong/PingPongEntity.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.samples.pingpong; import io.cloudstate.javasupport.*; diff --git a/samples/java-shopping-cart/src/main/java/io/cloudstate/samples/shoppingcart/Main.java b/samples/java-shopping-cart/src/main/java/io/cloudstate/samples/shoppingcart/Main.java index 6521315e2..f0aa30588 100644 --- a/samples/java-shopping-cart/src/main/java/io/cloudstate/samples/shoppingcart/Main.java +++ b/samples/java-shopping-cart/src/main/java/io/cloudstate/samples/shoppingcart/Main.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.samples.shoppingcart; import io.cloudstate.javasupport.*; diff --git a/samples/java-shopping-cart/src/main/java/io/cloudstate/samples/shoppingcart/ShoppingCartEntity.java b/samples/java-shopping-cart/src/main/java/io/cloudstate/samples/shoppingcart/ShoppingCartEntity.java index 9c3c3412f..066b19519 100644 --- a/samples/java-shopping-cart/src/main/java/io/cloudstate/samples/shoppingcart/ShoppingCartEntity.java +++ b/samples/java-shopping-cart/src/main/java/io/cloudstate/samples/shoppingcart/ShoppingCartEntity.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.samples.shoppingcart; import com.example.shoppingcart.Shoppingcart; diff --git a/scala-support/src/main/java/io/cloudstate/javasupport/ClientActionContext.java b/scala-support/src/main/java/io/cloudstate/javasupport/ClientActionContext.java index 0e1257a8e..e4934f315 100644 --- a/scala-support/src/main/java/io/cloudstate/javasupport/ClientActionContext.java +++ b/scala-support/src/main/java/io/cloudstate/javasupport/ClientActionContext.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport; /** diff --git a/scala-support/src/main/java/io/cloudstate/javasupport/CloudState.java b/scala-support/src/main/java/io/cloudstate/javasupport/CloudState.java index 2d3eccd38..537877062 100644 --- a/scala-support/src/main/java/io/cloudstate/javasupport/CloudState.java +++ b/scala-support/src/main/java/io/cloudstate/javasupport/CloudState.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport; import akka.Done; diff --git a/scala-support/src/main/java/io/cloudstate/javasupport/Context.java b/scala-support/src/main/java/io/cloudstate/javasupport/Context.java index 5e6458397..465d06254 100644 --- a/scala-support/src/main/java/io/cloudstate/javasupport/Context.java +++ b/scala-support/src/main/java/io/cloudstate/javasupport/Context.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport; /** Root class of all contexts. */ diff --git a/scala-support/src/main/java/io/cloudstate/javasupport/EffectContext.java b/scala-support/src/main/java/io/cloudstate/javasupport/EffectContext.java index 6814d55e6..5eeec266a 100644 --- a/scala-support/src/main/java/io/cloudstate/javasupport/EffectContext.java +++ b/scala-support/src/main/java/io/cloudstate/javasupport/EffectContext.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport; /** A context that allows instructing the proxy to perform a side effect. */ diff --git a/scala-support/src/main/java/io/cloudstate/javasupport/EntityContext.java b/scala-support/src/main/java/io/cloudstate/javasupport/EntityContext.java index 53b7e005a..2c502751d 100644 --- a/scala-support/src/main/java/io/cloudstate/javasupport/EntityContext.java +++ b/scala-support/src/main/java/io/cloudstate/javasupport/EntityContext.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport; /** diff --git a/scala-support/src/main/java/io/cloudstate/javasupport/EntityId.java b/scala-support/src/main/java/io/cloudstate/javasupport/EntityId.java index e89bf6dbc..9e5550d99 100644 --- a/scala-support/src/main/java/io/cloudstate/javasupport/EntityId.java +++ b/scala-support/src/main/java/io/cloudstate/javasupport/EntityId.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport; import io.cloudstate.javasupport.impl.CloudStateAnnotation; diff --git a/scala-support/src/main/java/io/cloudstate/javasupport/Jsonable.java b/scala-support/src/main/java/io/cloudstate/javasupport/Jsonable.java index de4eb6a43..e920240a2 100644 --- a/scala-support/src/main/java/io/cloudstate/javasupport/Jsonable.java +++ b/scala-support/src/main/java/io/cloudstate/javasupport/Jsonable.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport; import io.cloudstate.javasupport.impl.CloudStateAnnotation; diff --git a/scala-support/src/main/java/io/cloudstate/javasupport/ServiceCall.java b/scala-support/src/main/java/io/cloudstate/javasupport/ServiceCall.java index da11cbd16..7f2cbd2e6 100644 --- a/scala-support/src/main/java/io/cloudstate/javasupport/ServiceCall.java +++ b/scala-support/src/main/java/io/cloudstate/javasupport/ServiceCall.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport; import com.google.protobuf.Any; diff --git a/scala-support/src/main/java/io/cloudstate/javasupport/ServiceCallFactory.java b/scala-support/src/main/java/io/cloudstate/javasupport/ServiceCallFactory.java index 4dcddb1c7..f135e3455 100644 --- a/scala-support/src/main/java/io/cloudstate/javasupport/ServiceCallFactory.java +++ b/scala-support/src/main/java/io/cloudstate/javasupport/ServiceCallFactory.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport; /** diff --git a/scala-support/src/main/java/io/cloudstate/javasupport/ServiceCallRef.java b/scala-support/src/main/java/io/cloudstate/javasupport/ServiceCallRef.java index 63b499466..da270b2bf 100644 --- a/scala-support/src/main/java/io/cloudstate/javasupport/ServiceCallRef.java +++ b/scala-support/src/main/java/io/cloudstate/javasupport/ServiceCallRef.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport; import com.google.protobuf.Descriptors; diff --git a/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/BehaviorContext.java b/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/BehaviorContext.java index d4eea345d..43bdc3054 100644 --- a/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/BehaviorContext.java +++ b/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/BehaviorContext.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.eventsourced; /** Superinterface of all contexts that allow changing the current entities behavior behavior. */ diff --git a/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/CommandContext.java b/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/CommandContext.java index f8c0b5ccf..7c1b1b44a 100644 --- a/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/CommandContext.java +++ b/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/CommandContext.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.eventsourced; import io.cloudstate.javasupport.ClientActionContext; diff --git a/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/CommandHandler.java b/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/CommandHandler.java index 0fd309e3d..8efbb7fbe 100644 --- a/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/CommandHandler.java +++ b/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/CommandHandler.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.eventsourced; import io.cloudstate.javasupport.impl.CloudStateAnnotation; diff --git a/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventBehaviorContext.java b/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventBehaviorContext.java index 6fa677e68..91356d6b7 100644 --- a/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventBehaviorContext.java +++ b/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventBehaviorContext.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.eventsourced; /** diff --git a/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventContext.java b/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventContext.java index 6f132b656..9ccfb0b42 100644 --- a/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventContext.java +++ b/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventContext.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.eventsourced; /** Context for an event. */ diff --git a/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventHandler.java b/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventHandler.java index eab0d880b..310be5b00 100644 --- a/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventHandler.java +++ b/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventHandler.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.eventsourced; import io.cloudstate.javasupport.impl.CloudStateAnnotation; diff --git a/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedContext.java b/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedContext.java index 56f41a881..e46a17ace 100644 --- a/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedContext.java +++ b/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedContext.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.eventsourced; import io.cloudstate.javasupport.EntityContext; diff --git a/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedEntity.java b/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedEntity.java index 90a7e10eb..001904f4f 100644 --- a/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedEntity.java +++ b/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedEntity.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.eventsourced; import io.cloudstate.javasupport.impl.CloudStateAnnotation; diff --git a/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedEntityCreationContext.java b/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedEntityCreationContext.java index aedcefc8d..be7589a49 100644 --- a/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedEntityCreationContext.java +++ b/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedEntityCreationContext.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.eventsourced; /** diff --git a/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedEntityFactory.java b/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedEntityFactory.java index 742400e44..71046bd2b 100644 --- a/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedEntityFactory.java +++ b/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedEntityFactory.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.eventsourced; /** diff --git a/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedEntityHandler.java b/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedEntityHandler.java index 39c9a149a..d989a88bc 100644 --- a/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedEntityHandler.java +++ b/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/EventSourcedEntityHandler.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.eventsourced; import com.google.protobuf.Any; diff --git a/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/Snapshot.java b/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/Snapshot.java index af29c849e..0b27f59de 100644 --- a/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/Snapshot.java +++ b/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/Snapshot.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.eventsourced; import io.cloudstate.javasupport.impl.CloudStateAnnotation; diff --git a/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/SnapshotBehaviorContext.java b/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/SnapshotBehaviorContext.java index 00fb71c30..06b8dd553 100644 --- a/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/SnapshotBehaviorContext.java +++ b/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/SnapshotBehaviorContext.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.eventsourced; /** diff --git a/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/SnapshotContext.java b/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/SnapshotContext.java index d83d34f12..4130169fe 100644 --- a/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/SnapshotContext.java +++ b/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/SnapshotContext.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.eventsourced; /** A snapshot context. */ diff --git a/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/SnapshotHandler.java b/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/SnapshotHandler.java index cf5a874a0..984bfe7ad 100644 --- a/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/SnapshotHandler.java +++ b/scala-support/src/main/java/io/cloudstate/javasupport/eventsourced/SnapshotHandler.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.eventsourced; import io.cloudstate.javasupport.impl.CloudStateAnnotation; diff --git a/scala-support/src/main/java/io/cloudstate/javasupport/impl/CloudStateAnnotation.java b/scala-support/src/main/java/io/cloudstate/javasupport/impl/CloudStateAnnotation.java index c7df5d5db..a92c0172f 100644 --- a/scala-support/src/main/java/io/cloudstate/javasupport/impl/CloudStateAnnotation.java +++ b/scala-support/src/main/java/io/cloudstate/javasupport/impl/CloudStateAnnotation.java @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.impl; import java.lang.annotation.ElementType; diff --git a/scala-support/src/main/scala/io/cloudstate/javasupport/impl/AnySupport.scala b/scala-support/src/main/scala/io/cloudstate/javasupport/impl/AnySupport.scala index 26989d545..a81380fab 100644 --- a/scala-support/src/main/scala/io/cloudstate/javasupport/impl/AnySupport.scala +++ b/scala-support/src/main/scala/io/cloudstate/javasupport/impl/AnySupport.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.impl import java.io.ByteArrayOutputStream diff --git a/scala-support/src/main/scala/io/cloudstate/javasupport/impl/Contexts.scala b/scala-support/src/main/scala/io/cloudstate/javasupport/impl/Contexts.scala index 5b8323b32..b1ed1f8d6 100644 --- a/scala-support/src/main/scala/io/cloudstate/javasupport/impl/Contexts.scala +++ b/scala-support/src/main/scala/io/cloudstate/javasupport/impl/Contexts.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.impl import java.util.Optional diff --git a/scala-support/src/main/scala/io/cloudstate/javasupport/impl/ReflectionHelper.scala b/scala-support/src/main/scala/io/cloudstate/javasupport/impl/ReflectionHelper.scala index 08a8e11ee..633a72906 100644 --- a/scala-support/src/main/scala/io/cloudstate/javasupport/impl/ReflectionHelper.scala +++ b/scala-support/src/main/scala/io/cloudstate/javasupport/impl/ReflectionHelper.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.impl import java.lang.annotation.Annotation diff --git a/scala-support/src/main/scala/io/cloudstate/javasupport/impl/ResolvedServiceCallFactory.scala b/scala-support/src/main/scala/io/cloudstate/javasupport/impl/ResolvedServiceCallFactory.scala index bad047d15..99bd8598b 100644 --- a/scala-support/src/main/scala/io/cloudstate/javasupport/impl/ResolvedServiceCallFactory.scala +++ b/scala-support/src/main/scala/io/cloudstate/javasupport/impl/ResolvedServiceCallFactory.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.impl import io.cloudstate.javasupport.{ServiceCallFactory, ServiceCallRef, StatefulService} diff --git a/scala-support/src/main/scala/io/cloudstate/javasupport/impl/ResolvedServiceMethod.scala b/scala-support/src/main/scala/io/cloudstate/javasupport/impl/ResolvedServiceMethod.scala index c9b907aab..26ed9fe30 100644 --- a/scala-support/src/main/scala/io/cloudstate/javasupport/impl/ResolvedServiceMethod.scala +++ b/scala-support/src/main/scala/io/cloudstate/javasupport/impl/ResolvedServiceMethod.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.impl import com.fasterxml.jackson.databind.{ObjectReader, ObjectWriter} diff --git a/scala-support/src/main/scala/io/cloudstate/javasupport/impl/eventsourced/AnnotationBasedEventSourcedSupport.scala b/scala-support/src/main/scala/io/cloudstate/javasupport/impl/eventsourced/AnnotationBasedEventSourcedSupport.scala index aef8e32e8..9b422eb02 100644 --- a/scala-support/src/main/scala/io/cloudstate/javasupport/impl/eventsourced/AnnotationBasedEventSourcedSupport.scala +++ b/scala-support/src/main/scala/io/cloudstate/javasupport/impl/eventsourced/AnnotationBasedEventSourcedSupport.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.javasupport.impl.eventsourced import java.lang.reflect.{Constructor, InvocationTargetException, Method} diff --git a/tck/src/it/scala/io/cloudstate/tck/TCK.scala b/tck/src/it/scala/io/cloudstate/tck/TCK.scala index f8b074848..15d1c34aa 100644 --- a/tck/src/it/scala/io/cloudstate/tck/TCK.scala +++ b/tck/src/it/scala/io/cloudstate/tck/TCK.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.tck import org.scalatest._ diff --git a/tck/src/it/scala/io/cloudstate/tck/TckConfiguration.scala b/tck/src/it/scala/io/cloudstate/tck/TckConfiguration.scala index 4b669358d..4d29c0664 100644 --- a/tck/src/it/scala/io/cloudstate/tck/TckConfiguration.scala +++ b/tck/src/it/scala/io/cloudstate/tck/TckConfiguration.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.tck import java.io.File diff --git a/tck/src/it/scala/io/cloudstate/tck/TckProcesses.scala b/tck/src/it/scala/io/cloudstate/tck/TckProcesses.scala index c065a966b..57f025048 100644 --- a/tck/src/it/scala/io/cloudstate/tck/TckProcesses.scala +++ b/tck/src/it/scala/io/cloudstate/tck/TckProcesses.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Lightbend Inc. + * + * 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.cloudstate.tck import java.net.InetAddress