KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opensubsystems > core > logic > StatelessController


1 /*
2  * Copyright (c) 2005 - 2007 OpenSubsystems s.r.o. Slovak Republic. All rights reserved.
3  *
4  * Project: OpenSubsystems
5  *
6  * $Id: StatelessController.java,v 1.4 2007/01/07 06:15:14 bastafidli Exp $
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; version 2 of the License.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20  */

21
22 package org.opensubsystems.core.logic;
23
24 import java.rmi.RemoteException JavaDoc;
25
26 import org.opensubsystems.core.error.OSSException;
27
28 /**
29  * Base interface for all stateless controllers. This interface will be base
30  * interface for all deriver controller interfaces so that they can be easily
31  * identified and in the future we can add methods required by all controllers
32  * here.
33  *
34  * @version $Id: StatelessController.java,v 1.4 2007/01/07 06:15:14 bastafidli Exp $
35  * @author Miro Halas
36  * @code.reviewer Miro Halas
37  * @code.reviewed 1.2 2005/02/26 00:41:43 jlegeny
38  */

39 public interface StatelessController
40 {
41    /**
42     * Method overriden in each controller and called by controller manager
43     * when the controller is created. Controller should place any initialization
44     * call into the implementation of this method instead of into constructor
45     * since this method is called at the correct time when the controller is
46     * created as a stateless session bean and also when it is created as a POJO.
47     * We cannot call this method in EJBs from ejbCreate because xdoclet generates
48     * EJB class which implements and hides any ejbXXX method defined in this class.
49     *
50     * @throws OSSException - an error has occured
51     * @throws RemoteException - required since this method can be called remotely
52     */

53    void constructor(
54    ) throws OSSException,
55             RemoteException JavaDoc;
56 }
57
Popular Tags