KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > impl > interceptors > PINoOpHandlerImpl


1 /*
2  * @(#)PINoOpHandlerImpl.java 1.6 04/06/21
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package com.sun.corba.se.impl.interceptors;
9
10 import java.io.IOException JavaDoc;
11              
12 import org.omg.CORBA.Any JavaDoc;
13 import org.omg.CORBA.NVList JavaDoc;
14
15 import org.omg.IOP.CodecFactory JavaDoc;
16
17 import org.omg.CORBA.portable.RemarshalException JavaDoc;
18
19 import org.omg.PortableInterceptor.ObjectReferenceTemplate JavaDoc ;
20 import org.omg.PortableInterceptor.ForwardRequest JavaDoc;
21 import org.omg.PortableInterceptor.Interceptor JavaDoc;
22 import org.omg.PortableInterceptor.PolicyFactory JavaDoc;
23 import org.omg.PortableInterceptor.Current JavaDoc;
24
25 import org.omg.PortableInterceptor.ORBInitInfoPackage.DuplicateName JavaDoc ;
26
27 import com.sun.corba.se.pept.encoding.OutputObject;
28
29 import com.sun.corba.se.spi.ior.ObjectKeyTemplate;
30
31 import com.sun.corba.se.spi.oa.ObjectAdapter;
32
33 import com.sun.corba.se.spi.orb.ORB;
34
35 import com.sun.corba.se.spi.protocol.PIHandler;
36 import com.sun.corba.se.spi.protocol.ForwardException;
37 import com.sun.corba.se.spi.protocol.CorbaMessageMediator;
38
39 import com.sun.corba.se.impl.corba.RequestImpl;
40
41 import com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage;
42
43 /**
44  * This is No-Op implementation of PIHandler. It is used in ORBConfigurator
45  * to initialize a piHandler before the Persistent Server Activation. This
46  * PIHandler implementation will be replaced by the real PIHandler in
47  * ORB.postInit( ) call.
48  */

49 public class PINoOpHandlerImpl implements PIHandler
50 {
51     public PINoOpHandlerImpl( ) {
52     }
53
54     public void initialize() {
55     }
56
57     public void destroyInterceptors() {
58     }
59
60     public void objectAdapterCreated( ObjectAdapter oa )
61     {
62     }
63
64     public void adapterManagerStateChanged( int managerId,
65     short newState )
66     {
67     }
68
69     public void adapterStateChanged( ObjectReferenceTemplate JavaDoc[]
70     templates, short newState )
71     {
72     }
73
74
75     public void disableInterceptorsThisThread() {
76     }
77     
78     public void enableInterceptorsThisThread() {
79     }
80     
81     public void invokeClientPIStartingPoint()
82         throws RemarshalException JavaDoc
83     {
84     }
85     
86     public Exception JavaDoc invokeClientPIEndingPoint(
87         int replyStatus, Exception JavaDoc exception )
88     {
89         return null;
90     }
91     
92     public void initiateClientPIRequest( boolean diiRequest ) {
93     }
94     
95     public void cleanupClientPIRequest() {
96     }
97
98     public void setClientPIInfo(CorbaMessageMediator messageMediator)
99     {
100     }
101
102     public void setClientPIInfo( RequestImpl requestImpl )
103     {
104     }
105     
106     final public void sendCancelRequestIfFinalFragmentNotSent()
107     {
108     }
109     
110     
111     public void invokeServerPIStartingPoint()
112     {
113     }
114
115     public void invokeServerPIIntermediatePoint()
116     {
117     }
118     
119     public void invokeServerPIEndingPoint( ReplyMessage replyMessage )
120     {
121     }
122     
123     public void setServerPIInfo( Exception JavaDoc exception ) {
124     }
125
126     public void setServerPIInfo( NVList JavaDoc arguments )
127     {
128     }
129
130     public void setServerPIExceptionInfo( Any JavaDoc exception )
131     {
132     }
133
134     public void setServerPIInfo( Any JavaDoc result )
135     {
136     }
137
138     public void initializeServerPIInfo( CorbaMessageMediator request,
139     ObjectAdapter oa, byte[] objectId, ObjectKeyTemplate oktemp )
140     {
141     }
142     
143     public void setServerPIInfo( java.lang.Object JavaDoc servant,
144                           String JavaDoc targetMostDerivedInterface )
145     {
146     }
147
148     public void cleanupServerPIRequest() {
149     }
150     
151     public void register_interceptor( Interceptor JavaDoc interceptor, int type )
152     throws DuplicateName JavaDoc
153     {
154     }
155
156     public Current JavaDoc getPICurrent( ) {
157         return null;
158     }
159
160     public org.omg.CORBA.Policy JavaDoc create_policy(int type, org.omg.CORBA.Any JavaDoc val)
161         throws org.omg.CORBA.PolicyError JavaDoc
162     {
163         return null;
164     }
165
166     public void registerPolicyFactory( int type, PolicyFactory JavaDoc factory ) {
167     }
168     
169     public int allocateServerRequestId ()
170     {
171         return 0;
172     }
173 }
174
Popular Tags