You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by sm...@apache.org on 2012/07/19 18:36:38 UTC

svn commit: r1363415 - /pivot/branches/2.0.x/core/src/org/apache/pivot/util/Command.java

Author: smartini
Date: Thu Jul 19 16:36:37 2012
New Revision: 1363415

URL: http://svn.apache.org/viewvc?rev=1363415&view=rev
Log:
Add a Generic command interface, as in the Command pattern

Added:
    pivot/branches/2.0.x/core/src/org/apache/pivot/util/Command.java

Added: pivot/branches/2.0.x/core/src/org/apache/pivot/util/Command.java
URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/core/src/org/apache/pivot/util/Command.java?rev=1363415&view=auto
==============================================================================
--- pivot/branches/2.0.x/core/src/org/apache/pivot/util/Command.java (added)
+++ pivot/branches/2.0.x/core/src/org/apache/pivot/util/Command.java Thu Jul 19 16:36:37 2012
@@ -0,0 +1,27 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you 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 org.apache.pivot.util;
+
+/**
+ * Generic command interface.
+ */
+public interface Command {
+    /**
+     * Execute the command.
+     */
+    public void execute();
+}