KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > spi > orb > DataCollector


1 /*
2  * @(#)DataCollector.java 1.13 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 package com.sun.corba.se.spi.orb ;
8
9 import java.applet.Applet JavaDoc ;
10 import java.util.Properties JavaDoc ;
11 import java.util.Vector JavaDoc ;
12
13 /** Interface for collecting all sources of ORB configuration properties
14  * into a single properties object. A PropertyParser is needed so that
15  * the set of property names of interest is known.
16  */

17 public interface DataCollector {
18     /** Return true iff this DataCollector was created from
19      * applet data.
20      */

21     boolean isApplet() ;
22
23     /** Return true iff the local host and ORB initial host are the same.
24     * This is provided to avoid exposing the local host in insecure
25     * contexts.
26     */

27     boolean initialHostIsLocal() ;
28
29     /** Set the parser which is used to obtain property names.
30      * This must be called before getProperties
31      * may be called. It may be called multiple times if different
32      * sets of properties are needed for the same data sources.
33      */

34     void setParser( PropertyParser parser ) ;
35
36     /** Return the consolidated property information to be used
37      * for ORB configuration. Note that -ORBInitRef arguments are
38      * handled specially: all -ORBInitRef name=value arguments are
39      * converted into ( org.omg.CORBA.ORBInitRef.name, value )
40      * mappings in the resulting properties. Also, -ORBInitialServices
41      * is handled specially in applet mode: they are converted from
42      * relative to absolute URLs.
43      * @raises IllegalStateException if setPropertyNames has not
44      * been called.
45      */

46     Properties JavaDoc getProperties() ;
47 }
48
Popular Tags