KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > core > plugins > transaction > TransactionPlugin


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9 package org.jboss.portal.core.plugins.transaction;
10
11 import org.jboss.portal.server.plugins.PluginService;
12 import org.jboss.portal.common.metadata.MetaData;
13 import org.jboss.portal.common.transaction.Transactions;
14 import org.jboss.portal.core.metadata.TransactionMetaData;
15
16 /**
17  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
18  * @version $Revision: 1.1 $
19  */

20 public class TransactionPlugin extends PluginService
21 {
22
23    private Transactions.Type txType;
24
25    private TransactionMetaData metaData;
26
27    public void setMetaData(MetaData metaData)
28    {
29       this.metaData = (TransactionMetaData)metaData;
30       this.txType = this.metaData.getTxType();
31    }
32
33    public MetaData getMetaData()
34    {
35       return metaData;
36    }
37
38    public Transactions.Type getTxType()
39    {
40       return txType;
41    }
42
43    public void setTxType(Transactions.Type txType)
44    {
45       this.txType = txType;
46    }
47 }
48
Popular Tags