home *** CD-ROM | disk | FTP | other *** search
/ Java 1.2 How-To / JavaHowTo.iso / 3rdParty / jbuilder / TRIAL / JBUILDER / JVISBRKR.Z / SampleBindInterceptor.java < prev    next >
Encoding:
Java Source  |  1998-05-08  |  2.2 KB  |  71 lines

  1. /*
  2.  * Copyright (c) 1997-1998 Borland International, Inc. All Rights Reserved.
  3.  * 
  4.  * This SOURCE CODE FILE, which has been provided by Borland as part
  5.  * of a Borland product for use ONLY by licensed users of the product,
  6.  * includes CONFIDENTIAL and PROPRIETARY information of Borland.  
  7.  *
  8.  * USE OF THIS SOFTWARE IS GOVERNED BY THE TERMS AND CONDITIONS 
  9.  * OF THE LICENSE STATEMENT AND LIMITED WARRANTY FURNISHED WITH
  10.  * THE PRODUCT.
  11.  *
  12.  * IN PARTICULAR, YOU WILL INDEMNIFY AND HOLD BORLAND, ITS RELATED
  13.  * COMPANIES AND ITS SUPPLIERS, HARMLESS FROM AND AGAINST ANY CLAIMS
  14.  * OR LIABILITIES ARISING OUT OF THE USE, REPRODUCTION, OR DISTRIBUTION
  15.  * OF YOUR PROGRAMS, INCLUDING ANY CLAIMS OR LIABILITIES ARISING OUT OF
  16.  * OR RESULTING FROM THE USE, MODIFICATION, OR DISTRIBUTION OF PROGRAMS
  17.  * OR FILES CREATED FROM, BASED ON, AND/OR DERIVED FROM THIS SOURCE
  18.  * CODE FILE.
  19.  */
  20. package visibroker.samples.interceptor.sample;
  21.  
  22. import  com.visigenic.vbroker.interceptor.*;
  23. import  com.visigenic.vbroker.IOP.*;
  24.  
  25. public class SampleBindInterceptor extends SampleInterceptor implements BindInterceptor
  26. {
  27.     public SampleBindInterceptor()
  28.     {
  29.         super("BindINT");
  30.     }
  31.  
  32.     public boolean bind(IORHolder ior, org.omg.CORBA.Object object, Closure closure)
  33.     {
  34.         print("bind");
  35.         return false;
  36.     }
  37.  
  38.     public boolean bind_failed(IORHolder ior, org.omg.CORBA.Object object, Closure closure)
  39.     {
  40.         print("bind_failed");
  41.         return false;
  42.     }
  43.  
  44.     public void bind_succeeded(IOR ior, org.omg.CORBA.Object object,Closure closure)
  45.     {
  46.         print("bind_succeeded");
  47.     }
  48.  
  49.     public boolean rebind(IORHolder ior, org.omg.CORBA.Object object, Closure closure)
  50.     {
  51.         print("rebind");
  52.         return false;
  53.     }
  54.  
  55.     public boolean rebind_failed(IORHolder ior, org.omg.CORBA.Object object, Closure closure)
  56.     {
  57.         print("rebind_failed");
  58.         return false;
  59.     }
  60.  
  61.     public void rebind_succeeded(IOR ior, org.omg.CORBA.Object object, Closure closure)
  62.     {
  63.         print("rebind_succeeded");
  64.     }
  65.  
  66.     public void exception_occurred(IOR ior, org.omg.CORBA.Object object, org.omg.CORBA.Environment env, Closure closure)
  67.     {
  68.         print("exception_occurred");
  69.     }
  70. }
  71.