summaryrefslogtreecommitdiffstats
path: root/vespajlib/src/main/java/com/yahoo/data/access/Inspectable.java
diff options
context:
space:
mode:
Diffstat (limited to 'vespajlib/src/main/java/com/yahoo/data/access/Inspectable.java')
-rw-r--r--vespajlib/src/main/java/com/yahoo/data/access/Inspectable.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/data/access/Inspectable.java b/vespajlib/src/main/java/com/yahoo/data/access/Inspectable.java
new file mode 100644
index 00000000000..bf3344a0fe9
--- /dev/null
+++ b/vespajlib/src/main/java/com/yahoo/data/access/Inspectable.java
@@ -0,0 +1,12 @@
+// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+package com.yahoo.data.access;
+
+/**
+ * Minimal API to implement for objects containing or exposing
+ * structured, generic, schemaless data. Use this when it's
+ * impractical to implement the Inspector interface directly.
+ **/
+public interface Inspectable {
+ /** get an Inspector exposing this object's structured data. */
+ public Inspector inspect();
+}