01: /*
02: * Copyright 2005 jWic group (http://www.jwic.de)
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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: * de.jwic.base.Application
17: * Created on 11.09.2005
18: * $Id: Application.java,v 1.1 2006/01/16 08:30:40 lordsam Exp $
19: */
20: package de.jwic.base;
21:
22: /**
23: * Abstract implementation of the IApplication interface.
24: * @author Florian Lippisch
25: * @version $Revision: 1.1 $
26: */
27: public abstract class Application implements IApplication {
28:
29: protected SessionContext sessionContext = null;
30:
31: /* (non-Javadoc)
32: * @see de.jwic.base.IApplication#createRootControl(de.jwic.base.IControlContainer)
33: */
34: public abstract Control createRootControl(
35: IControlContainer container);
36:
37: /**
38: * Returns the sessionContext.
39: * @return
40: */
41: protected SessionContext getSessionContext() {
42: return sessionContext;
43: }
44:
45: /* (non-Javadoc)
46: * @see de.jwic.base.IApplication#initialize(de.jwic.base.SessionContext)
47: */
48: public void initialize(SessionContext context) {
49: this .sessionContext = context;
50: }
51:
52: /* (non-Javadoc)
53: * @see de.jwic.base.IApplication#postDestroy()
54: */
55: public void postDestroy() {
56: // do nothing
57:
58: }
59:
60: /* (non-Javadoc)
61: * @see de.jwic.base.IApplication#preDestroy()
62: */
63: public void preDestroy() {
64: // do nothing
65:
66: }
67:
68: }
|