[jboss-cvs] JBossAS SVN: r96001 - projects/kernel/trunk/dependency/src/main/java/org/jboss/dependency/plugins.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Nov 4 10:15:07 EST 2009


Author: kabir.khan at jboss.com
Date: 2009-11-04 10:15:07 -0500 (Wed, 04 Nov 2009)
New Revision: 96001

Added:
   projects/kernel/trunk/dependency/src/main/java/org/jboss/dependency/plugins/AbstractControllerStateModel.java
Log:
Add missing file

Added: projects/kernel/trunk/dependency/src/main/java/org/jboss/dependency/plugins/AbstractControllerStateModel.java
===================================================================
--- projects/kernel/trunk/dependency/src/main/java/org/jboss/dependency/plugins/AbstractControllerStateModel.java	                        (rev 0)
+++ projects/kernel/trunk/dependency/src/main/java/org/jboss/dependency/plugins/AbstractControllerStateModel.java	2009-11-04 15:15:07 UTC (rev 96001)
@@ -0,0 +1,44 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file in the
+* distribution for a full listing of individual contributors. 
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/ 
+package org.jboss.dependency.plugins;
+
+import org.jboss.dependency.spi.ControllerState;
+import org.jboss.dependency.spi.ControllerStateModel;
+
+/**
+ * 
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class AbstractControllerStateModel implements ControllerStateModel
+{
+   /**
+    * Add a state to the model. This should be initiated via Controller.addState()
+    * 
+    * @param state The state to add
+    * @param before The exisiting state to add this state before
+    * @return true if the state was added, false if the state already existed and therefore was not added
+    * @throws IllegalArgumentException if the before state did not exist
+    */
+   public abstract boolean addState(ControllerState state, ControllerState before);
+
+}




More information about the jboss-cvs-commits mailing list