dain 2004/01/29 17:32:00
Modified: modules/transaction/src/java/org/apache/geronimo/transaction
TransactionManagerProxy.java
Log:
Added constructor declaration
Revision Changes Path
1.2 +11 -2
incubator-geronimo/modules/transaction/src/java/org/apache/geronimo/transaction/TransactionManagerProxy.java
Index: TransactionManagerProxy.java
===================================================================
RCS file:
/home/cvs/incubator-geronimo/modules/transaction/src/java/org/apache/geronimo/transaction/TransactionManagerProxy.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- TransactionManagerProxy.java 23 Jan 2004 18:54:15 -0000 1.1
+++ TransactionManagerProxy.java 30 Jan 2004 01:32:00 -0000 1.2
@@ -71,6 +71,8 @@
import org.apache.geronimo.gbean.GBeanInfo;
import org.apache.geronimo.gbean.GBeanInfoFactory;
import org.apache.geronimo.gbean.GOperationInfo;
+import org.apache.geronimo.gbean.GConstructorInfo;
+import org.apache.geronimo.gbean.GAttributeInfo;
import org.apache.geronimo.transaction.manager.TransactionManagerImpl;
/**
@@ -83,7 +85,7 @@
*/
public class TransactionManagerProxy implements TransactionManager,
XATerminator {
- private static final GBeanInfo GBEAN_INFO;
+ public static final GBeanInfo GBEAN_INFO;
private final TransactionManager delegate;
private final ThreadLocal threadTx = new ThreadLocal();
@@ -207,6 +209,13 @@
//for now we use the default constructor.
static {
GBeanInfoFactory infoFactory = new
GBeanInfoFactory(TransactionManagerProxy.class.getName());
+
+ infoFactory.setConstructor(new GConstructorInfo(
+ new String[] { "Delegate" },
+ new Class[] { TransactionManager.class }));
+
+ infoFactory.addAttribute(new GAttributeInfo("Delegate", true));
+
infoFactory.addOperation(new GOperationInfo("setTransactionTimeout",
new String[] {Integer.TYPE.getName()}));
infoFactory.addOperation(new GOperationInfo("begin"));
infoFactory.addOperation(new GOperationInfo("getStatus"));