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.IApplication
17: * Created on 11.09.2005
18: * $Id: IApplication.java,v 1.1 2006/01/16 08:30:40 lordsam Exp $
19: */
20: package de.jwic.base;
21:
22: import java.io.Serializable;
23:
24: /**
25: * An application is responsible for the lifecycle of an jWic application. It
26: * creates the root control(s) and recieves events from the framework about
27: * starting and stopping.
28: *
29: * @author Florian Lippisch
30: * @version $Revision: 1.1 $
31: * @since 3.0.0
32: */
33: public interface IApplication extends Serializable {
34:
35: /**
36: * Create the root control(s). This method must return the
37: * root control.
38: * @param container
39: */
40: public Control createRootControl(IControlContainer container);
41:
42: /**
43: * Initialize the application.
44: * @param context
45: */
46: public void initialize(SessionContext context);
47:
48: /**
49: * Invoked after the SessionContext and all controls have been destroyed.
50: *
51: */
52: public void postDestroy();
53:
54: /**
55: * Invoked before the SessionContext and all controls are destroyed.
56: *
57: */
58: public void preDestroy();
59:
60: }
|