1 /* 2 * ==================================================================== 3 * This software is subject to the terms of the Common Public License 4 * Agreement, available at the following URL: 5 * http://www.opensource.org/licenses/cpl.html . 6 * Copyright (C) 2003-2004 TONBELLER AG. 7 * All Rights Reserved. 8 * You must accept the terms of that agreement to use this software. 9 * ==================================================================== 10 * 11 * 12 */ 13 package com.tonbeller.wcf.component; 14 15 import javax.servlet.http.HttpSession; 16 17 import com.tonbeller.wcf.controller.RequestContext; 18 19 /** 20 * Lifecycle of WCF Components 21 * @author av 22 */ 23 public interface LifeCycle { 24 /** 25 * initializes the component. Called once after construction. 26 */ 27 void initialize(RequestContext context) throws Exception; 28 29 /** 30 * finalizes the component. Called once on session timeout 31 */ 32 void destroy(HttpSession session) throws Exception; 33 34 } 35