[jboss-svn-commits] JBL Code SVN: r14178 - in labs/jbosstm/workspace/baframework/trunk: src/org/jboss/txbridge/ba and 5 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Mon Aug 13 13:09:52 EDT 2007


Author: maciej.machulak
Date: 2007-08-13 13:09:52 -0400 (Mon, 13 Aug 2007)
New Revision: 14178

Removed:
   labs/jbosstm/workspace/baframework/trunk/demo/resources/web/orderbar.jsp
   labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/annotation/BAAgreementType.java
   labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/annotation/BACompensation.java
   labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/annotation/BACompensationManagement.java
   labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/annotation/BACompensationMode.java
   labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/annotation/BACompensationOrder.java
   labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/annotation/BACompensationType.java
   labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/annotation/BAParameterMatch.java
   labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/annotation/BAServiceType.java
   labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/compensation/
   labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/data/CompensationData.java
   labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/data/CompensationDataCustom.java
   labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/data/CompensationDataParam.java
   labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/data/CompensationDataReturn.java
   labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/data/DummyCompensationData.java
   labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/exception/CompensationActionUnsuccessfulException.java
   labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/exception/CompensationMethodNotAccessible.java
   labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/helper/CompensationManagement.java
   labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/participant/CompensationDataCustomFactory.java
   labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/participant/CompensationDataFactory.java
   labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/participant/CompensationDataParamFactory.java
   labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/participant/CompensationDataReturnFactory.java
   labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/participant/DummyCompensationDataFactory.java
Log:
Version 0.2.0 of the Business Activity Framework:
- significant changes in the API (new BAFrameworkAPI document released)
- support for the Business Agreement With Coordinator Completion protocol
- restructured code
- proper commit :)

Deleted: labs/jbosstm/workspace/baframework/trunk/demo/resources/web/orderbar.jsp
===================================================================
--- labs/jbosstm/workspace/baframework/trunk/demo/resources/web/orderbar.jsp	2007-08-13 16:46:16 UTC (rev 14177)
+++ labs/jbosstm/workspace/baframework/trunk/demo/resources/web/orderbar.jsp	2007-08-13 17:09:52 UTC (rev 14178)
@@ -1,191 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-
-<!--
-JBoss, Home of Professional Open Source
-Copyright 2007, Red Hat Middleware LLC, and individual contributors
-as indicated by the @author tags.
-See the copyright.txt in the distribution for a full listing
-of individual contributors.
-This copyrighted material is made available to anyone wishing to use,
-modify, copy, or redistribute it subject to the terms and conditions
-of the GNU General Public License, v. 2.0.
-This program is distributed in the hope that it will be useful, but WITHOUT A
-WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-PARTICULAR PURPOSE.  See the GNU General Public License for more details.
-You should have received a copy of the GNU General Public License,
-v. 2.0 along with this distribution; if not, write to the Free Software
-Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
-MA  02110-1301, USA.
-
-(C) 2007,
- at author JBoss Inc.
--->
-
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-    <title>Business Activity Framework Demo Application</title>
-    <meta http-equiv="content-type" content="text/html; charset=iso-8859-2">
-    <meta http-equiv="content-language" content="en">
-    <meta name="author" content="Maciej Machulak">
-    <link rel="stylesheet" type="text/css" href="green.css"/>
-</head>
-<body>
-
-<div id="main">
-
-<div id="headerLeft">
-    <h1>Business Activity Framework Demo Application</h1>
-</div>
-
-<div id="headerRight">
-    <img src="jboss.jpg">
-</div>
-
-<div id="headerBottom">
-    Debug window (service return value):
-</div>
-
-<div id="headerDebug">
-    ${requestScope.DEBUG}
-</div>
-
-${requestScope.ACTIVE}
-
-<div id="menu">
-    <p>
-        <a href="HotelService?page=index.jsp">Home</a><br>
-        <a href="HotelService?page=about.jsp">About Demo Application</a><br>
-        <a href="HotelService?page=author.jsp">About Author</a><br>
-    </p>
-    <hr>
-    <p>
-        <a href="HotelService?page=initialise.jsp" ${requestScope.INITIALISE}>Initialise data</a><br>
-        <a href="HotelService?method=dropHotelData&baRequest=false" ${requestScope.DROP}>Delete data</a><br>
-        <a href="HotelService?method=getHotelData&baRequest=false" ${requestScope.SHOW}>Show data</a><br>
-    </p>
-    <hr>
-    <p>
-        <a href="HotelService?method=startBA&baRequest=true" ${requestScope.BEGIN}>Begin Business Activity</a><br>
-    </p>
-    <hr>
-    <p>
-        <b>BA services:</b><br>
-        <a href="HotelService?page=hotelinfo.jsp" ${requestScope.BASERVICE}>Hotel Info</a><br>
-        <a href="HotelService?page=bookroom.jsp" ${requestScope.BASERVICE}>Book Room</a><br>
-        <a href="HotelService?page=getpackage.jsp" ${requestScope.BASERVICE}>Get Package</a><br>
-        <a href="HotelService?page=bookfitness.jsp" ${requestScope.BASERVICE}>Book Fitness</a><br>
-        <a href="HotelService?page=bookcasino.jsp" ${requestScope.BASERVICE}>Book Casino</a><br>
-        <a href="HotelService?page=ordermeal.jsp" ${requestScope.BASERVICE}>Order Meal</a><br>
-        <a href="HotelService?page=increaserating.jsp" ${requestScope.BASERVICE}>Increase Rating</a><br>
-        <a href="HotelService?page=decreaserating.jsp" ${requestScope.BASERVICE}>Decrease Rating</a><br>
-    </p>
-    <hr>
-    <p>
-        <a href="HotelService?method=closeBA&baRequest=true" ${requestScope.CLOSE}>Close Business Activity</a><br>
-        <a href="HotelService?method=cancelBA&baRequest=true" ${requestScope.CANCEL}>Cancel Business Activity</a><br>
-    </p>
-    <hr>
-    <p>
-        <b>Normal services:</b><br>
-        <a href="HotelService?page=cancelroom.jsp" ${requestScope.SERVICE}>Cancel Room</a><br>
-        <a href="HotelService?page=cancelpackage.jsp" ${requestScope.SERVICE}>Cancel Package</a><br>
-        <a href="HotelService?page=cancelfitness.jsp" ${requestScope.SERVICE}>Cancel Fitness</a><br>
-        <a href="HotelService?page=cancelcasino.jsp" ${requestScope.SERVICE}>Cancel Casino</a><br>
-        <a href="HotelService?page=cancelmeal.jsp" ${requestScope.SERVICE}>Cancel Meal</a><br>
-    </p>
-    <hr>
-</div>
-
-
-<div id="body" align=center>
-
-    <p align="center">
-
-        <form action="HotelService?method=orderExtraMiniBar&baRequest=true&continue=orderbar.jsp" method="post">
-            <fieldset class="medium">
-                <legend>bookFitnessPass()</legend>
-
-                <p>
-                    <label for="username">Username</label>
-                    <input type="text" name="parameters" value="user1"/>
-                    <br>
-                    <label for="password">Password</label>
-                    <input type="text" name="parameters" value="pass1"/>
-                    <br>
-                    <label for="room">Reservation number</label>
-                    <input type="text" name="parameters"/>
-                </p>
-
-                <input type="submit" value="Invoke Web Service"/>
-
-            </fieldset>
-        </form>
-
-    </p>
-
-    <p align="left">
-        <b>Method's class</b><br>
-        com.jboss.ba.demo.service.HotelImpl
-    </p>
-
-    <p align="left">
-        <b>Method's signature</b><br>
-
-        <div id="code">
-
-<pre>
- at WebMethod<br>
-<span class="annotation">@BAService</span>(BAServiceType.<span class="enum">MODIFY</span>,BAAgreementType.<span
-        class="enum">PARTICIPANT_COMPLETION</span>)<br>
-<span class="annotation">@BACompensatedBy</span>(value="cancelExtraMiniBar",<br>
-    &#09;methodClass="wstest.servicehotel.HotelImpl",<br>
-    &#09;remoteInterface="com.jboss.ba.demo.service.servicervice.Hotel",<br>
-&#09;jndiName="wstest/HotelBAImpl/remote",<br>
-&#09;type=BACompensationType.<span class="enum">PARAMETERS_MATCH</span>,<br>
-        &#09;mode=BACompensationMode.<span class="enum">EJB</span>)<br>
-public boolean orderExtraMiniBar(String username, String password, Integer reservationNumber)<br>
-<br>
-throws HotelCustomException
-</pre>
-
-        </div>
-
-    </p>
-
-    <p>
-    </p>
-
-    <p align="left">
-        <b>Method description</b>
-        <br>
-        This method books a given number of fitness passes for the given reservation. It takes following parameters:
-        <ul align="left">
-            <li>Username
-            <li>Password
-            <li>Reservation Number
-        </ul>
-    </p>
-    <p align="left">
-        It throws following exceptions:
-        <ul align="left">
-            <li>HotelCustomException
-        </ul>
-    </p>
-    <p align="left">
-        HotelCustomException is thrown if either the user cannot log in (username, password or both are incorrect)
-        or the reservation number is incorrect (reservation does not exist).
-    </p>
-
-</div>
-
-
-<div id="footer">
-    <p align=right>
-        &copy; JBoss, a division of Red Hat
-    </p>
-</div>
-
-</div>
-
-</body>
-</html>
\ No newline at end of file

Deleted: labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/annotation/BAAgreementType.java
===================================================================
--- labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/annotation/BAAgreementType.java	2007-08-13 16:46:16 UTC (rev 14177)
+++ labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/annotation/BAAgreementType.java	2007-08-13 17:09:52 UTC (rev 14178)
@@ -1,36 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt in the distribution for a full listing
- * of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU General Public License, v. 2.0.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE.  See the GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA  02110-1301, USA.
- *
- * (C) 2007,
- * @author JBoss Inc.
- */
-package org.jboss.txbridge.ba.annotation;
-
-/**
- * List of supported agreement protocols the BA Service may enlist for. Those are
- * the protocols defined in the WS-BusinessActivity specification:
- * PARTICIPANT_COMPLETION - Business Agreement With Participant Completion
- * COORDINATOR_COMPLETION - Business Agreement With Coordinator Completion
- *
- * @author Maciej P. Machulak (mmachulak at redhat.com)
- * @version 0.1
- */
-public enum BAAgreementType 
-{
-    PARTICIPANT_COMPLETION,
-    COORDINATOR_COMPLETION
-}

Deleted: labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/annotation/BACompensation.java
===================================================================
--- labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/annotation/BACompensation.java	2007-08-13 16:46:16 UTC (rev 14177)
+++ labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/annotation/BACompensation.java	2007-08-13 17:09:52 UTC (rev 14178)
@@ -1,46 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt in the distribution for a full listing
- * of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU General Public License, v. 2.0.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE.  See the GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA  02110-1301, USA.
- *
- * (C) 2007,
- * @author JBoss Inc.
- */
-package org.jboss.txbridge.ba.annotation;
-
-import java.lang.annotation.*;
-
-/**
- * Specifies the compensation action and a type of compensation for a group of services (class).
- * This annotation can be used to provide common values so that it is not necessary to explicitly
- * define all required member values of the @CompensatedBy annotation.
- *
- * @author Maciej P. Machulak (mmachulak at redhat.com)
- * @version 0.1
- */
- at Target(ElementType.TYPE)
- at Retention(RetentionPolicy.RUNTIME)
- at Documented
-public @interface BACompensation
-{
-    public Class[] serviceClass() default {};
-    public Class[] ejbInterface() default {};
-    public String jndiName() default "";
-    public String providerURL() default "";
-    public String wsdl() default "";   
-    public String address() default "";
-    public String namespace() default "";
-    public String serviceName() default "";
-}

Deleted: labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/annotation/BACompensationManagement.java
===================================================================
--- labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/annotation/BACompensationManagement.java	2007-08-13 16:46:16 UTC (rev 14177)
+++ labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/annotation/BACompensationManagement.java	2007-08-13 17:09:52 UTC (rev 14178)
@@ -1,37 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt in the distribution for a full listing
- * of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU General Public License, v. 2.0.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE.  See the GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA  02110-1301, USA.
- *
- * (C) 2007,
- * @author JBoss Inc.
- */
-package org.jboss.txbridge.ba.annotation;
-
-import java.lang.annotation.*;
-
-/**
- * Marker annotation used to tag a CompensationManager object so that it can be transparently
- * injected by the Business Activity Framework.
- *
- * @author Maciej P. Machulak (mmachulak at redhat.com)
- * @version 0.1
- */
- at Target(ElementType.FIELD)
- at Retention(RetentionPolicy.RUNTIME)
- at Documented
-public @interface BACompensationManagement
-{
-}

Deleted: labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/annotation/BACompensationMode.java
===================================================================
--- labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/annotation/BACompensationMode.java	2007-08-13 16:46:16 UTC (rev 14177)
+++ labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/annotation/BACompensationMode.java	2007-08-13 17:09:52 UTC (rev 14178)
@@ -1,39 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt in the distribution for a full listing
- * of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU General Public License, v. 2.0.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE.  See the GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA  02110-1301, USA.
- *
- * (C) 2007,
- * @author JBoss Inc.
- */
-package org.jboss.txbridge.ba.annotation;
-
-/**
- * List of supported compensation modes. The compensation mode defines how a compensation
- * action should be accessed (if it is located in POJO class, if it should be looked up
- * as it is exposed as a method of an EJB, etc).
- *
- * @author Maciej P. Machulak (mmachulak at redhat.com)
- * @version 0.1
- */
-public enum BACompensationMode 
-{
-    POJO,
-    EJB,
-    UDII,
-    CDII,
-    RMI,
-    CORBA
-}

Deleted: labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/annotation/BACompensationOrder.java
===================================================================
--- labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/annotation/BACompensationOrder.java	2007-08-13 16:46:16 UTC (rev 14177)
+++ labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/annotation/BACompensationOrder.java	2007-08-13 17:09:52 UTC (rev 14178)
@@ -1,36 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt in the distribution for a full listing
- * of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU General Public License, v. 2.0.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE.  See the GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA  02110-1301, USA.
- *
- * (C) 2007,
- * @author JBoss Inc.
- */
-package org.jboss.txbridge.ba.annotation;
-
-/**
- * List of supported compensation order types. Compensation order defines if the
- * compensation action should be executed as the first, the last one or normally
- * among other compensation actions of a Business Activity.
- *
- * @author Maciej P. Machulak (mmachulak at redhat.com)
- * @version 0.1
- */
-public enum BACompensationOrder
-{
-    NORMAL,
-    FIRST,
-    LAST
-}

Deleted: labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/annotation/BACompensationType.java
===================================================================
--- labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/annotation/BACompensationType.java	2007-08-13 16:46:16 UTC (rev 14177)
+++ labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/annotation/BACompensationType.java	2007-08-13 17:09:52 UTC (rev 14178)
@@ -1,35 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt in the distribution for a full listing
- * of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU General Public License, v. 2.0.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE.  See the GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA  02110-1301, USA.
- *
- * (C) 2007,
- * @author JBoss Inc.
- */
-package org.jboss.txbridge.ba.annotation;
-
-/**
- * List of supported compensation types. Compensation type defines what data needs
- * to be remembered so that compensation action can be executed.
- *
- * @author Maciej P. Machulak (mmachulak at redhat.com)
- * @version 0.1
- */
-public enum BACompensationType
-{
-    RETURN_VALUE,
-    PARAMETERS_MATCH,
-    CUSTOM
-}

Deleted: labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/annotation/BAParameterMatch.java
===================================================================
--- labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/annotation/BAParameterMatch.java	2007-08-13 16:46:16 UTC (rev 14177)
+++ labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/annotation/BAParameterMatch.java	2007-08-13 17:09:52 UTC (rev 14178)
@@ -1,36 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt in the distribution for a full listing
- * of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU General Public License, v. 2.0.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE.  See the GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA  02110-1301, USA.
- *
- * (C) 2007,
- * @author JBoss Inc.
- */
-package org.jboss.txbridge.ba.annotation;
-
-/**
- * List of supported parameter match types. If the service requires STRICT parameter
- * match then compensation action will be executed only if all arguments can be provided.
- * If the service uses ALLOW_NULL parameter match then the execution mechanism will try
- * to invoke the service even if not enough arguments can be found.
- *
- * @author Maciej P. Machulak (mmachulak at redhat.com)
- * @version 0.1
- */
-public enum BAParameterMatch
-{
-    STRICT,
-    ALLOW_NULL
-}

Deleted: labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/annotation/BAServiceType.java
===================================================================
--- labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/annotation/BAServiceType.java	2007-08-13 16:46:16 UTC (rev 14177)
+++ labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/annotation/BAServiceType.java	2007-08-13 17:09:52 UTC (rev 14178)
@@ -1,36 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt in the distribution for a full listing
- * of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU General Public License, v. 2.0.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE.  See the GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA  02110-1301, USA.
- *
- * (C) 2007,
- * @author JBoss Inc.
- */
-package org.jboss.txbridge.ba.annotation;
-
-/**
- * Supported Business Activity service types. This type defines if a service modifies
- * any data (MODIFY) and should provide compensation action or if it is READONLY and
- * can exit the Business Activity after finishing its work.
- *
- * @author Maciej P. Machulak (mmachulak at redhat.com)
- * @version 0.1 
- */
-public enum BAServiceType
-{
-    READONLY,
-    MODIFY
-}
-

Deleted: labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/data/CompensationData.java
===================================================================
--- labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/data/CompensationData.java	2007-08-13 16:46:16 UTC (rev 14177)
+++ labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/data/CompensationData.java	2007-08-13 17:09:52 UTC (rev 14178)
@@ -1,52 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt in the distribution for a full listing
- * of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU General Public License, v. 2.0.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE.  See the GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA  02110-1301, USA.
- *
- * (C) 2007,
- * @author JBoss Inc.
- */
-package org.jboss.txbridge.ba.data;
-
-import java.util.concurrent.ConcurrentMap;
-import java.util.concurrent.ConcurrentHashMap;
-import java.io.Serializable;
-
-/**
- * This class represents the basic compensation data that is used for compensation. 
- * It provides implementation of methods to store and retrieve data with given identifiers.
- *
- * @author Maciej P. Machulak (mmachulak at redhat.com)
- * @version 0.1
- */
-public abstract class CompensationData implements Serializable
-{
-    private ConcurrentMap<Object,Object> compensationData;
-
-    protected CompensationData()
-    {
-        compensationData = new ConcurrentHashMap<Object,Object>();
-    }
-
-    public Object get(Object key) 
-    {
-        return compensationData.get(key);
-    }
-
-    public void put(Object key, Object value)
-    {
-        compensationData.put(key, value);
-    }
-}

Deleted: labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/data/CompensationDataCustom.java
===================================================================
--- labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/data/CompensationDataCustom.java	2007-08-13 16:46:16 UTC (rev 14177)
+++ labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/data/CompensationDataCustom.java	2007-08-13 17:09:52 UTC (rev 14178)
@@ -1,37 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt in the distribution for a full listing
- * of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU General Public License, v. 2.0.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE.  See the GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA  02110-1301, USA.
- *
- * (C) 2007,
- * @author JBoss Inc.
- */
-package org.jboss.txbridge.ba.data;
-
-/**
- * This class represents the compensation data used for compensation with custom compensation
- * type. Objects are stored within a map - each object is identified by a unique identifier.
- *
- * @author Maciej P. Machulak (mmachulak at redhat.com)
- * @version 0.1
- */
-public class CompensationDataCustom extends CompensationData 
-{
-
-    public CompensationDataCustom()
-    {
-        super();
-    }
-}

Deleted: labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/data/CompensationDataParam.java
===================================================================
--- labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/data/CompensationDataParam.java	2007-08-13 16:46:16 UTC (rev 14177)
+++ labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/data/CompensationDataParam.java	2007-08-13 17:09:52 UTC (rev 14178)
@@ -1,73 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt in the distribution for a full listing
- * of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU General Public License, v. 2.0.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE.  See the GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA  02110-1301, USA.
- *
- * (C) 2007,
- * @author JBoss Inc.
- */
-package org.jboss.txbridge.ba.data;
-
-import org.apache.log4j.Logger;
-
-/**
- * This class represents the compensation data used for compensation where parameters
- * simply match. We can just store all the parameters and then use them in exactly the
- * same order to invoke the compensation service.
- *
- * @author Maciej P. Machulak (mmachulak at redhat.com)
- * @version 0.1
- */
-public class CompensationDataParam extends CompensationData
-{
-    // Logger
-    private static Logger log = Logger.getLogger(CompensationDataReturn.class);
-
-    // Array of parameters
-    private Object[] arguments;
-
-    /**
-     * Constructor
-     */
-    public CompensationDataParam()
-    {
-        super();
-        log.info("constructor()");
-    }
-
-    /**
-     * This method stores arguments of the method's invocation.
-     *
-     * @param arguments is the array of arguments.
-     */
-    public void putArguments(Object[] arguments)
-    {
-        log.info("putArguments()");
-        this.arguments = arguments;
-    }
-
-    /**
-     * This method returns the array of arguments for a certain method invocation.
-     *
-     * @return is the array of arguments.
-     */
-    public Object[] getArguments()
-    {
-        log.info("getArguments()");
-        return arguments;
-    }
-
-
-}

Deleted: labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/data/CompensationDataReturn.java
===================================================================
--- labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/data/CompensationDataReturn.java	2007-08-13 16:46:16 UTC (rev 14177)
+++ labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/data/CompensationDataReturn.java	2007-08-13 17:09:52 UTC (rev 14178)
@@ -1,58 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt in the distribution for a full listing
- * of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU General Public License, v. 2.0.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE.  See the GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA  02110-1301, USA.
- *
- * (C) 2007,
- * @author JBoss Inc.
- */
-package org.jboss.txbridge.ba.data;
-
-import org.apache.log4j.Logger;
-
-/**
- * This class represents compensation data that stores information about the return object
- * which is used as the only parameter of the compensation action. 
- *
- * @author Maciej P. Machulak (mmachulak at redhat.com)
- * @version 0.1
- */
-public class CompensationDataReturn extends CompensationData 
-{
-    // Logger
-    private static Logger log = Logger.getLogger(CompensationDataReturn.class);
-
-    // The return object
-    private Object[] returnObject;
-
-    public CompensationDataReturn()
-    {
-        super();
-        returnObject = new Object[1];
-        log.info("constructor()");
-    }
-
-    public Object[] getReturnObject()
-    {
-        log.info("getReturnObject()");
-        return returnObject;
-    }
-
-    public void putReturnObject(Object returnObject)
-    {
-        log.info("putReturnObject()");
-        this.returnObject[0] = returnObject;
-    }
-}

Deleted: labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/data/DummyCompensationData.java
===================================================================
--- labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/data/DummyCompensationData.java	2007-08-13 16:46:16 UTC (rev 14177)
+++ labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/data/DummyCompensationData.java	2007-08-13 17:09:52 UTC (rev 14178)
@@ -1,37 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt in the distribution for a full listing
- * of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU General Public License, v. 2.0.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE.  See the GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA  02110-1301, USA.
- *
- * (C) 2007,
- * @author JBoss Inc.
- */
-package org.jboss.txbridge.ba.data;
-
-/**
- * This class represents a dummy compensation object which is used when services are
- * executed outside the scope of a Business Activity and no data should be remembered.
- *
- * @author Maciej P. Machulak (mmachulak at redhat.com)
- * @version 0.1
- */
-public class DummyCompensationData extends CompensationData
-{
-
-    public DummyCompensationData()
-    {
-        super();
-    }
-}

Deleted: labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/exception/CompensationActionUnsuccessfulException.java
===================================================================
--- labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/exception/CompensationActionUnsuccessfulException.java	2007-08-13 16:46:16 UTC (rev 14177)
+++ labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/exception/CompensationActionUnsuccessfulException.java	2007-08-13 17:09:52 UTC (rev 14178)
@@ -1,48 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt in the distribution for a full listing
- * of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU General Public License, v. 2.0.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE.  See the GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA  02110-1301, USA.
- *
- * (C) 2007,
- * @author JBoss Inc.
- */
-package org.jboss.txbridge.ba.exception;
-
-/**
- * This exception is thrown if there was an error with executing a single compensation action.
- * It is an internal exception and is not passed back to the client of the Business Activity.
- *
- * @author Maciej P. Machulak (mmachulak at redhat.com)
- * @version 0.1
- */
-public class CompensationActionUnsuccessfulException extends Exception
-{
-
-    public CompensationActionUnsuccessfulException()
-    {
-        super();
-    }
-
-    public CompensationActionUnsuccessfulException(String message)
-    {
-        super(message);
-    }
-
-
-    public CompensationActionUnsuccessfulException(Throwable cause)
-    {
-        super(cause);
-    }
-}

Deleted: labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/exception/CompensationMethodNotAccessible.java
===================================================================
--- labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/exception/CompensationMethodNotAccessible.java	2007-08-13 16:46:16 UTC (rev 14177)
+++ labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/exception/CompensationMethodNotAccessible.java	2007-08-13 17:09:52 UTC (rev 14178)
@@ -1,43 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt in the distribution for a full listing
- * of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU General Public License, v. 2.0.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE.  See the GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA  02110-1301, USA.
- *
- * (C) 2007,
- * @author JBoss Inc.
- */
-package org.jboss.txbridge.ba.exception;
-
-/**
- * This exception is thrown when the compensation method during a static analysis is
- * not accessible (i.e. the name is incorrect, parameter types do not match, the specified
- * class does not exist, etc).
- *
- * @author Maciej P. Machulak (mmachulak at redhat.com)
- * @version 0.1
- */
-public class CompensationMethodNotAccessible extends Exception
-{
-
-    public CompensationMethodNotAccessible()
-    {
-        super();
-    }
-
-    public CompensationMethodNotAccessible(String message)
-    {
-        super(message);
-    }
-}

Deleted: labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/helper/CompensationManagement.java
===================================================================
--- labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/helper/CompensationManagement.java	2007-08-13 16:46:16 UTC (rev 14177)
+++ labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/helper/CompensationManagement.java	2007-08-13 17:09:52 UTC (rev 14178)
@@ -1,79 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt in the distribution for a full listing
- * of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU General Public License, v. 2.0.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE.  See the GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA  02110-1301, USA.
- *
- * (C) 2007,
- * @author JBoss Inc.
- */
-package org.jboss.txbridge.ba.helper;
-
-import org.jboss.txbridge.ba.annotation.BACompensationManagement;
-import org.jboss.txbridge.ba.compensation.CompensationManagerImpl;
-import org.jboss.txbridge.ba.compensation.CompensationManager;
-import org.jboss.txbridge.ba.data.TaskDescription;
-import org.apache.log4j.Logger;
-
-import java.lang.reflect.Field;
-
-/**
- * This component provides a method that can be used to inject a compensation manager to an object on
- * which a compensation action is to be executed. Such compensation manager can be used to retrieve
- * and additional data, which may be required by the compensation action.
- *
- * @author Maciej P. Machulak (mmachulak at redhat.com)
- * @version 0.1
- */
-public class CompensationManagement
-{
-    // Logger
-    private static Logger log = Logger.getLogger(CompensationManagement.class);
-
-    public static synchronized Object injectCompensationManager(Object targetObject, TaskDescription taskDesc)
-    {
-        // Inject the transaction identifier
-        log.info("injectCompensationManager()");
-        log.info(taskDesc);
-        try
-        {
-            Class clazz = targetObject.getClass();
-            log.info("Injecting compensation manager");
-            Field[] fields = clazz.getDeclaredFields();
-            for (Field singleField : fields)
-            {
-                BACompensationManagement cm = singleField.getAnnotation(BACompensationManagement.class);
-                if (cm != null)
-                {
-                    if (singleField.getType().equals(CompensationManager.class))
-                    {
-                        log.info("CompensationManager object found...");
-                        log.info("Setting field...");
-                        singleField.setAccessible(true);
-                        log.info("Injecting...");
-                        singleField.set(targetObject,new CompensationManagerImpl(taskDesc.getTaskId(),taskDesc.getParticipant()));
-                        log.info("Returning...");
-                        return targetObject;
-                    }
-                }
-            }
-        }
-        catch (IllegalAccessException iae)
-        {
-            iae.printStackTrace();
-            return null;
-        }
-        return null;
-    }
-}

Deleted: labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/participant/CompensationDataCustomFactory.java
===================================================================
--- labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/participant/CompensationDataCustomFactory.java	2007-08-13 16:46:16 UTC (rev 14177)
+++ labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/participant/CompensationDataCustomFactory.java	2007-08-13 17:09:52 UTC (rev 14178)
@@ -1,38 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt in the distribution for a full listing
- * of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU General Public License, v. 2.0.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE.  See the GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA  02110-1301, USA.
- *
- * (C) 2007,
- * @author JBoss Inc.
- */
-package org.jboss.txbridge.ba.participant;
-
-import org.jboss.txbridge.ba.data.CompensationData;
-import org.jboss.txbridge.ba.data.CompensationDataCustom;
-
-/**
- * Responsible for instantiating compensation data object required for custom compensation.
- *
- * @author Maciej P. Machulak (mmachulak at redhat.com)
- * @version 0.1
- */
-public class CompensationDataCustomFactory implements CompensationDataFactory
-{
-    public CompensationData createCompensationData()
-    {
-        return new CompensationDataCustom();
-    }
-}

Deleted: labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/participant/CompensationDataFactory.java
===================================================================
--- labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/participant/CompensationDataFactory.java	2007-08-13 16:46:16 UTC (rev 14177)
+++ labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/participant/CompensationDataFactory.java	2007-08-13 17:09:52 UTC (rev 14178)
@@ -1,32 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt in the distribution for a full listing
- * of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU General Public License, v. 2.0.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE.  See the GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA  02110-1301, USA.
- *
- * (C) 2007,
- * @author JBoss Inc.
- */
-package org.jboss.txbridge.ba.participant;
-
-import org.jboss.txbridge.ba.data.CompensationData;
-
-/**
- * @author Maciej P. Machulak (mmachulak at redhat.com)
- * @version 0.1
- */
-public interface CompensationDataFactory
-{
-    public CompensationData createCompensationData();
-}

Deleted: labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/participant/CompensationDataParamFactory.java
===================================================================
--- labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/participant/CompensationDataParamFactory.java	2007-08-13 16:46:16 UTC (rev 14177)
+++ labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/participant/CompensationDataParamFactory.java	2007-08-13 17:09:52 UTC (rev 14178)
@@ -1,39 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt in the distribution for a full listing
- * of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU General Public License, v. 2.0.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE.  See the GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA  02110-1301, USA.
- *
- * (C) 2007,
- * @author JBoss Inc.
- */
-package org.jboss.txbridge.ba.participant;
-
-import org.jboss.txbridge.ba.data.CompensationData;
-import org.jboss.txbridge.ba.data.CompensationDataParam;
-
-/**
- * Responsible for instantiating compensation data object required for compensation
- * where parameters of the original service and the compensation service match.
- *
- * @author Maciej P. Machulak (mmachulak at redhat.com)
- * @version 0.1
- */
-public class CompensationDataParamFactory implements CompensationDataFactory
-{
-    public CompensationData createCompensationData()
-    {
-        return new CompensationDataParam();
-    }
-}

Deleted: labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/participant/CompensationDataReturnFactory.java
===================================================================
--- labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/participant/CompensationDataReturnFactory.java	2007-08-13 16:46:16 UTC (rev 14177)
+++ labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/participant/CompensationDataReturnFactory.java	2007-08-13 17:09:52 UTC (rev 14178)
@@ -1,39 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt in the distribution for a full listing
- * of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU General Public License, v. 2.0.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE.  See the GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA  02110-1301, USA.
- *
- * (C) 2007,
- * @author JBoss Inc.
- */
-package org.jboss.txbridge.ba.participant;
-
-import org.jboss.txbridge.ba.data.CompensationData;
-import org.jboss.txbridge.ba.data.CompensationDataReturn;
-
-/**
- * Responsible for instantiating compensation data object required for compensation where the
- * return value is used as an argument for the compensation action.
- *
- * @author Maciej P. Machulak (mmachulak at redhat.com)
- * @version 0.1
- */
-public class CompensationDataReturnFactory implements CompensationDataFactory
-{
-    public CompensationData createCompensationData()
-    {
-        return new CompensationDataReturn();
-    }
-}

Deleted: labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/participant/DummyCompensationDataFactory.java
===================================================================
--- labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/participant/DummyCompensationDataFactory.java	2007-08-13 16:46:16 UTC (rev 14177)
+++ labs/jbosstm/workspace/baframework/trunk/src/org/jboss/txbridge/ba/participant/DummyCompensationDataFactory.java	2007-08-13 17:09:52 UTC (rev 14178)
@@ -1,39 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt in the distribution for a full listing
- * of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU General Public License, v. 2.0.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE.  See the GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA  02110-1301, USA.
- *
- * (C) 2007,
- * @author JBoss Inc.
- */
-package org.jboss.txbridge.ba.participant;
-
-import org.jboss.txbridge.ba.data.CompensationData;
-import org.jboss.txbridge.ba.data.DummyCompensationData;
-
-/**
- * Responsible for instantiating dummy compensation object. This factory is used if a certain
- * service is executed outside the scope of a Business Activity.
- *
- * @author Maciej P. Machulak (mmachulak at redhat.com)
- * @version 0.1
- */
-public class DummyCompensationDataFactory implements CompensationDataFactory
-{
-    public CompensationData createCompensationData()
-    {
-        return new DummyCompensationData();
-    }
-}




More information about the jboss-svn-commits mailing list