KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > spi > ior > TaggedProfile


1 /*
2  * @(#)TaggedProfile.java 1.10 03/12/19
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.spi.ior;
9
10 import com.sun.corba.se.spi.orb.ORB ;
11
12 /** TaggedProfile represents a tagged profile in an IOR.
13  * A profile contains all of the information necessary for an invocation.
14  * It contains one or more endpoints that may be used for an invocation.
15  * A TaggedProfile conceptually has three parts: A TaggedProfileTemplate,
16  * an ObjectKeyTemplate, and an ObjectId.
17  */

18 public interface TaggedProfile extends Identifiable, MakeImmutable
19 {
20     TaggedProfileTemplate getTaggedProfileTemplate() ;
21
22     ObjectId getObjectId() ;
23
24     ObjectKeyTemplate getObjectKeyTemplate() ;
25
26     ObjectKey getObjectKey() ;
27
28     /** Return true is prof is equivalent to this TaggedProfile.
29      * This means that this and prof are indistinguishable for
30      * the purposes of remote invocation. Typically this means that
31      * the profile data is identical and both profiles contain exactly
32      * the same components (if components are applicable).
33      * isEquivalent( prof ) should imply that getObjectId().equals(
34      * prof.getObjectId() ) is true, and so is
35      * getObjectKeyTemplate().equals( prof.getObjectKeyTemplate() ).
36      */

37     boolean isEquivalent( TaggedProfile prof ) ;
38
39     /** Return the TaggedProfile as a CDR encapsulation in the standard
40      * format. This is required for Portable interceptors.
41      */

42     org.omg.IOP.TaggedProfile JavaDoc getIOPProfile();
43
44     /** Return true if this TaggedProfile was created in orb.
45      * Caches the result.
46      */

47     boolean isLocal() ;
48 }
49
Popular Tags