summaryrefslogtreecommitdiff
path: root/java/pablotron/luigi/actions/TextAction.java
diff options
context:
space:
mode:
authorpabs@pablotron.org <pabs@pablotron.org>2014-12-18 15:10:23 -0500
committerpabs@pablotron.org <pabs@pablotron.org>2014-12-18 15:10:23 -0500
commit750550e6df3cf8c9013f7fa455218b8d3847e181 (patch)
treeebe5067d888da30367a4d738b08cd07025d9a386 /java/pablotron/luigi/actions/TextAction.java
parent0585aba994f725566191d20f11af5e13d575985c (diff)
downloadluigi-template-750550e6df3cf8c9013f7fa455218b8d3847e181.tar.bz2
luigi-template-750550e6df3cf8c9013f7fa455218b8d3847e181.zip
add java implementation
Diffstat (limited to 'java/pablotron/luigi/actions/TextAction.java')
-rw-r--r--java/pablotron/luigi/actions/TextAction.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/java/pablotron/luigi/actions/TextAction.java b/java/pablotron/luigi/actions/TextAction.java
new file mode 100644
index 0000000..3024f23
--- /dev/null
+++ b/java/pablotron/luigi/actions/TextAction.java
@@ -0,0 +1,22 @@
+package pablotron.luigi.actions;
+
+import java.util.Map;
+import pablotron.luigi.actions.Action;
+import pablotron.luigi.Filter;
+import pablotron.luigi.LuigiError;
+
+public final class TextAction implements Action {
+ private final String text;
+
+ public TextAction(final String text) {
+ this.text = text;
+ }
+
+ public String run(
+ Map<String, Filter.Handler> filters,
+ Map<String, String> args
+ ) throws LuigiError {
+ return this.text;
+ }
+};
+