[jboss-svn-commits] JBL Code SVN: r10973 - in labs/jbossesb/trunk/product: core/rosetta/src/org/jboss/soa/esb/notification and 2 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Fri Apr 13 15:47:48 EDT 2007
Author: estebanschifman
Date: 2007-04-13 15:47:48 -0400 (Fri, 13 Apr 2007)
New Revision: 10973
Added:
labs/jbossesb/trunk/product/services/jbpm/src/main/java/org/jboss/soa/esb/services/jbpm/actions/SingleCommandProcessor.java
Modified:
labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/couriers/TwoWayCourier.java
labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/notification/NotifyConsole.java
labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/notification/NotifyFTP.java
labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/parameters/ParamRepositoryException.java
labs/jbossesb/trunk/product/services/jbpm/src/main/java/org/jboss/soa/esb/services/jbpm/actions/CommandInterpreter.java
Log:
Add copyright note
Modified: labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/couriers/TwoWayCourier.java
===================================================================
--- labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/couriers/TwoWayCourier.java 2007-04-13 18:10:27 UTC (rev 10972)
+++ labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/couriers/TwoWayCourier.java 2007-04-13 19:47:48 UTC (rev 10973)
@@ -1,3 +1,25 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt 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.soa.esb.couriers;
import org.jboss.internal.soa.esb.couriers.PickUpOnlyCourier;
Modified: labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/notification/NotifyConsole.java
===================================================================
--- labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/notification/NotifyConsole.java 2007-04-13 18:10:27 UTC (rev 10972)
+++ labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/notification/NotifyConsole.java 2007-04-13 19:47:48 UTC (rev 10973)
@@ -1,3 +1,25 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt 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.soa.esb.notification;
import org.jboss.soa.esb.helpers.ConfigTree;
Modified: labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/notification/NotifyFTP.java
===================================================================
--- labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/notification/NotifyFTP.java 2007-04-13 18:10:27 UTC (rev 10972)
+++ labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/notification/NotifyFTP.java 2007-04-13 19:47:48 UTC (rev 10973)
@@ -1,3 +1,25 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt 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.soa.esb.notification;
import java.io.File;
Modified: labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/parameters/ParamRepositoryException.java
===================================================================
--- labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/parameters/ParamRepositoryException.java 2007-04-13 18:10:27 UTC (rev 10972)
+++ labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/parameters/ParamRepositoryException.java 2007-04-13 19:47:48 UTC (rev 10973)
@@ -1,3 +1,25 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt 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.soa.esb.parameters;
import org.jboss.soa.esb.BaseException;
Modified: labs/jbossesb/trunk/product/services/jbpm/src/main/java/org/jboss/soa/esb/services/jbpm/actions/CommandInterpreter.java
===================================================================
--- labs/jbossesb/trunk/product/services/jbpm/src/main/java/org/jboss/soa/esb/services/jbpm/actions/CommandInterpreter.java 2007-04-13 18:10:27 UTC (rev 10972)
+++ labs/jbossesb/trunk/product/services/jbpm/src/main/java/org/jboss/soa/esb/services/jbpm/actions/CommandInterpreter.java 2007-04-13 19:47:48 UTC (rev 10973)
@@ -57,10 +57,10 @@
public class CommandInterpreter implements ActionLifecycle
{
public void destroy() throws ActionLifecycleException {
- _config = null;
-
+ System.out.println("destroy() invoked");
}
public void initialise() throws ActionLifecycleException {
+ System.out.println("initialise() invoked - config="+_config);
if (null==_config)
_config = new ConfigTree("autoGenerated");
Added: labs/jbossesb/trunk/product/services/jbpm/src/main/java/org/jboss/soa/esb/services/jbpm/actions/SingleCommandProcessor.java
===================================================================
--- labs/jbossesb/trunk/product/services/jbpm/src/main/java/org/jboss/soa/esb/services/jbpm/actions/SingleCommandProcessor.java (rev 0)
+++ labs/jbossesb/trunk/product/services/jbpm/src/main/java/org/jboss/soa/esb/services/jbpm/actions/SingleCommandProcessor.java 2007-04-13 19:47:48 UTC (rev 10973)
@@ -0,0 +1,110 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt 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.soa.esb.services.jbpm.actions;
+
+import org.jboss.soa.esb.ConfigurationException;
+import org.jboss.soa.esb.helpers.ConfigTree;
+import org.jboss.soa.esb.services.jbpm.util.CommandVehicle;
+import org.jboss.soa.esb.util.Util;
+
+public class SingleCommandProcessor extends CommandInterpreter
+{
+ public static final String SINGLE_COMMAND_ELEMENT_TAG = "command";
+ public static final String METHOD_TAG = "method";
+
+ public SingleCommandProcessor(ConfigTree config) throws ConfigurationException
+ {
+ super(config);
+ } // ________________________________
+
+ protected void checkMyParms() throws ConfigurationException
+ {
+ super.checkMyParms();
+ ConfigTree[] oa = _config.getChildren(SINGLE_COMMAND_ELEMENT_TAG);
+ if (oa.length != 1)
+ throw new ConfigurationException("Configuration must have a single <command> child element");
+ _config = oa[0];
+
+ String aux = _config.getAttribute(METHOD_TAG);
+ if (Util.isNullString(aux))
+ throw new ConfigurationException("Missing '"+METHOD_TAG+"' attribute");
+
+ try { _oper = CommandVehicle.Operation.valueOf(aux); }
+ catch (IllegalArgumentException e)
+ {
+ throw new ConfigurationException("Attribute '"+METHOD_TAG+"' has an invalid value"
+ +"- see CommandVehicle.Operation enum for possible values");
+ }
+ if (_oper.equals(CommandVehicle.Operation.deployProcessDefinition)) parmsProcessDef ();
+ else if(_oper.equals(CommandVehicle.Operation.getProcessInstanceVariables)) parmsGetProcessVars ();
+ else if(_oper.equals(CommandVehicle.Operation.getTokenVariables)) parmsGetTokenVars ();
+ else if(_oper.equals(CommandVehicle.Operation.hasInstanceEnded)) parmsInstanceEnded ();
+ else if(_oper.equals(CommandVehicle.Operation.newProcessInstance)) parmsNewInstance ();
+ else if(_oper.equals(CommandVehicle.Operation.setProcessInstanceVariables)) parmsSetProcessVars ();
+ else if(_oper.equals(CommandVehicle.Operation.setTokenVariables)) parmsSetTokenVars ();
+ else if(_oper.equals(CommandVehicle.Operation.signalProcess)) parmsSignalProcess ();
+ else if(_oper.equals(CommandVehicle.Operation.signalToken)) parmsSignalToken ();
+ else
+ throw new ConfigurationException(_oper.toString()
+ +" is not a valid operation for this action class");
+ } // _______________________________
+
+ protected void parmsProcessDef() throws ConfigurationException
+ {
+ } // _______________________________
+
+ protected void parmsGetProcessVars() throws ConfigurationException
+ {
+ } // _______________________________
+
+ protected void parmsGetTokenVars() throws ConfigurationException
+ {
+ } // _______________________________
+
+ protected void parmsInstanceEnded() throws ConfigurationException
+ {
+ // this is just a placeholder - No extra attributes nor elements needed by this op
+ // process instance id must come in each incoming message
+ } // _______________________________
+
+ protected void parmsNewInstance() throws ConfigurationException
+ {
+ } // _______________________________
+
+ protected void parmsSetProcessVars() throws ConfigurationException
+ {
+ } // _______________________________
+
+ protected void parmsSetTokenVars() throws ConfigurationException
+ {
+ } // _______________________________
+
+ protected void parmsSignalProcess() throws ConfigurationException
+ {
+ } // _______________________________
+
+ protected void parmsSignalToken() throws ConfigurationException
+ {
+ } // _______________________________
+
+ CommandVehicle.Operation _oper;
+}
Property changes on: labs/jbossesb/trunk/product/services/jbpm/src/main/java/org/jboss/soa/esb/services/jbpm/actions/SingleCommandProcessor.java
___________________________________________________________________
Name: svn:eol-style
+ native
More information about the jboss-svn-commits
mailing list