aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/buildeventstream
diff options
context:
space:
mode:
authorGravatar Klaus Aehlig <aehlig@google.com>2017-07-11 12:54:40 +0200
committerGravatar László Csomor <laszlocsomor@google.com>2017-07-11 14:47:39 +0200
commita708a02680da349c85077acb6d8db21805342416 (patch)
tree4e740e29d18d5f4f547c3c424347959966fbddda /src/main/java/com/google/devtools/build/lib/buildeventstream
parent7c2279967a619d44848b5384096323fa7529ed08 (diff)
BuildEventWithConfiguration: represent configurations as BuildEvent
From a BEP point of view, the only interface of a configuration we care about is its BuildEvent structure. Represent it as such, so that we can move this class to the rest of the buildeventstream module. This is a prerequisite for ActionOwners refering to configurations in the BEP. Change-Id: I6d1c1bf2951aac91607e83cad664553cd6620df8 PiperOrigin-RevId: 161510049
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/buildeventstream')
-rw-r--r--src/main/java/com/google/devtools/build/lib/buildeventstream/BuildEventWithConfiguration.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/buildeventstream/BuildEventWithConfiguration.java b/src/main/java/com/google/devtools/build/lib/buildeventstream/BuildEventWithConfiguration.java
new file mode 100644
index 0000000000..4cd2b46daf
--- /dev/null
+++ b/src/main/java/com/google/devtools/build/lib/buildeventstream/BuildEventWithConfiguration.java
@@ -0,0 +1,27 @@
+// Copyright 2017 The Bazel Authors. All rights reserved.
+//
+// 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 com.google.devtools.build.lib.buildeventstream;
+
+import java.util.Collection;
+
+/** Interface for {@link BuildEvent}s that reference build configurations */
+public interface BuildEventWithConfiguration extends BuildEvent {
+ /**
+ * The configurations the event mentions, and hence should be introduced in the stream before this
+ * event; they are abstracted as {@link BuildEvent}, as for the build event stream the only thing
+ * we care is how they get presenteded in the protocol.
+ */
+ Collection<BuildEvent> getConfigurations();
+}