2011/08/05 - Jakarta Cactus has been retired.

For more information, please explore the Attic.

View Javadoc

1   package org.apache.cactus.internal.server;
2   /* 
3    * ========================================================================
4    * 
5    * Licensed to the Apache Software Foundation (ASF) under one or more
6    * contributor license agreements.  See the NOTICE file distributed with
7    * this work for additional information regarding copyright ownership.
8    * The ASF licenses this file to You under the Apache License, Version 2.0
9    * (the "License"); you may not use this file except in compliance with
10   * the License.  You may obtain a copy of the License at
11   * 
12   *   http://www.apache.org/licenses/LICENSE-2.0
13   * 
14   * Unless required by applicable law or agreed to in writing, software
15   * distributed under the License is distributed on an "AS IS" BASIS,
16   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   * See the License for the specific language governing permissions and
18   * limitations under the License.
19   * 
20   * ========================================================================
21   */
22  import javax.ejb.SessionContext;
23  import org.apache.cactus.EJBRequest;
24  
25  /**
26   * Prototype of EJBRedirector for Cactus.
27   * @author Siddhartha P. Chandurkar (siddhartha@visioncodified.com)
28   */
29  public class BeanImplicitObjects implements EJBImplicitObjects 
30  {
31      /**
32       * The session context to use.
33       */
34      private SessionContext context;
35      
36      /**
37       * The ejb request to use.
38       */
39      private EJBRequest request;
40  
41      /**
42       * Getter method for the ejb context.
43       */
44      public SessionContext getEJBContext() 
45      {
46          return context;
47      }
48  
49      /**
50       * Setter method for the ejb context.
51       * @param theContext
52       */
53      public void setEJBContext(SessionContext theContext) 
54      {
55          context = theContext;
56      }
57  
58      /**
59       * Getter method for the ejb request.
60       * @return ejb request object
61       */
62      public EJBRequest getEJBRequest() 
63      {
64          return request;
65      }
66      
67      /**
68       * Setter method for the ejb request.
69       * @param theRequest
70       */
71      public void setEJBRequest(EJBRequest theRequest) 
72      {
73          request = theRequest;
74      }
75  }