KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jacorb > poa > POAAdapter


1 package org.jacorb.poa;
2
3 /*
4  * JacORB - a free Java ORB
5  *
6  * Copyright (C) 1997-2004 Gerald Brose.
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Library General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Library General Public License for more details.
17  *
18  * You should have received a copy of the GNU Library General Public
19  * License along with this library; if not, write to the Free
20  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21  */

22  
23 import org.jacorb.poa.util.*;
24 import org.jacorb.orb.dsi.ServerRequest;
25
26 import org.omg.PortableServer.Servant JavaDoc;
27
28 /**
29  * The adapter which can receives poa events. It implements all poa related
30  * listener interfaces. The methods in this class are empty.
31  * This class is provided as a convenience for easily creating poa listeners
32  * by extending this class and overriding only the methods of interest.
33  *
34  * @author Reimo Tiedemann, FU Berlin
35  * @version 1.01, 06/20/99, RT
36  */

37 abstract public class POAAdapter
38     implements AOMListener, POAListener, RequestQueueListener, RPPoolManagerListener {
39     public void objectActivated(byte[] oid, Servant JavaDoc servant, int aom_size) {
40     }
41     public void objectDeactivated(byte[] oid, Servant JavaDoc servant, int aom_size) {
42     }
43     public void poaCreated(POA poa) {
44     }
45     public void poaStateChanged(POA poa, int new_state) {
46     }
47     public void processorAddedToPool(RequestProcessor processor, int pool_count, int pool_size) {
48     }
49     public void processorRemovedFromPool(RequestProcessor processor, int pool_count, int pool_size) {
50     }
51     public void referenceCreated(org.omg.CORBA.Object JavaDoc object) {
52         /* reference creation will not propagated in this version */
53     }
54     public void requestAddedToQueue(ServerRequest request, int queue_size) {
55     }
56     public void requestRemovedFromQueue(ServerRequest request, int queue_size) {
57     }
58     public void servantEtherialized(byte[] oid, Servant JavaDoc servant) {
59     }
60     public void servantIncarnated(byte[] oid, Servant JavaDoc servant) {
61     }
62 }
63
64
65
66
67
68
69
70
71
72
73
74
75
76
Popular Tags