KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > beehive > netui > pageflow > internal > PageFlowBeanContext


1 /*
2  * Copyright 2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  * $Header:$
17  */

18 package org.apache.beehive.netui.pageflow.internal;
19
20 import org.apache.beehive.controls.runtime.servlet. ServletBeanContext;
21 import org.apache.beehive.netui.pageflow.ActionResolver;
22 import org.apache.beehive.netui.pageflow.PageFlowController;
23
24 import javax.servlet.ServletRequest JavaDoc;
25
26 /**
27  * Specialization of the base ServletBeanContext that adds a Page Flow service provider to offer
28  * initialization for PageFlowController and SharedFlowControler members in a Control.
29  */

30 public class PageFlowBeanContext
31         extends ServletBeanContext
32         implements PageFlowServiceProvider.HasServletRequest
33 {
34     public ServletRequest JavaDoc getServletRequest()
35     {
36         return super.getServletRequest();
37     }
38
39     /**
40       * Called by BeanContextSupport superclass during construction and deserialization to
41       * initialize subclass transient state
42       */

43      public void initialize()
44      {
45          super.initialize();
46          addService( PageFlowController.class, PageFlowServiceProvider.getProvider() );
47      }
48 }
49
Popular Tags