KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > invocation > LocalEJBInvocation


1 /*
2 * JBoss, Home of Professional Open Source
3 * Copyright 2005, JBoss Inc., and individual contributors as indicated
4 * by the @authors tag. See the copyright.txt in the distribution for a
5 * full listing of individual contributors.
6 *
7 * This is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU Lesser General Public License as
9 * published by the Free Software Foundation; either version 2.1 of
10 * the License, or (at your option) any later version.
11 *
12 * This software is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this software; if not, write to the Free
19 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21 */

22 package org.jboss.invocation;
23
24 import javax.transaction.Transaction JavaDoc;
25 import java.lang.reflect.Method JavaDoc;
26 import java.security.Principal JavaDoc;
27 import java.util.Map JavaDoc;
28
29 /**
30  * Optimized invocation object for Local interface invocations
31  *
32  * @author <a HREF="mailto:bill@jboss.org">Bill Burke</a>
33  * @version $Revision: 37459 $
34  */

35 public class LocalEJBInvocation extends Invocation
36 {
37    public LocalEJBInvocation()
38    {
39    }
40
41    public LocalEJBInvocation(Object JavaDoc id, Method JavaDoc m, Object JavaDoc[] args, Transaction JavaDoc tx,
42                 Principal JavaDoc identity, Object JavaDoc credential)
43    {
44       super(id, m, args, tx, identity, credential);
45    }
46
47    private Transaction JavaDoc tx;
48    private Object JavaDoc credential;
49    private Principal JavaDoc principal;
50    private Object JavaDoc enterpriseContext;
51    private Object JavaDoc id;
52
53    public void setTransaction(Transaction JavaDoc tx)
54    {
55      this.tx = tx;
56    }
57
58    public Transaction JavaDoc getTransaction()
59    {
60       return this.tx;
61    }
62
63    public Object JavaDoc getCredential()
64    {
65       return credential;
66    }
67
68    public void setCredential(Object JavaDoc credential)
69    {
70       this.credential = credential;
71    }
72
73    public Principal JavaDoc getPrincipal()
74    {
75       return principal;
76    }
77
78    public void setPrincipal(Principal JavaDoc principal)
79    {
80       this.principal = principal;
81    }
82
83    public Object JavaDoc getEnterpriseContext()
84    {
85       return enterpriseContext;
86    }
87
88    public void setEnterpriseContext(Object JavaDoc enterpriseContext)
89    {
90       this.enterpriseContext = enterpriseContext;
91    }
92
93    public Object JavaDoc getId()
94    {
95       return id;
96    }
97
98    public void setId(Object JavaDoc id)
99    {
100       this.id = id;
101    }
102 }
103
Popular Tags