KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ve > luz > ica > jackass > component > StatelessHook


1 /*
2  * Copyright (c) 2003 by The Jackass Team
3  * Licensed under the Open Software License version 2.0
4  */

5 package ve.luz.ica.jackass.component;
6
7 /**
8  * Hook interface for stateless objects
9  * @author Carlos Arévalo
10  */

11 public interface StatelessHook
12 {
13     /**
14      * This method is automatically invoked by the application server
15      * before the component is initialized in order to pass the application
16      * and component context.
17      * @param appContext a context associated to the application the component belongs to.
18      * @param compContext a context assiciated to the component.
19      */

20     void jackassSetContexts(ApplicationContext appContext, StatelessContext compContext);
21
22     /**
23      * This method is invoked by the application server when the component is created
24      */

25
26     void jackassCreate();
27     /**
28      * This method is invoked by the application server when the component is destroyed
29      */

30     void jackassRemove();
31 }
32
Popular Tags