KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > impl > orb > AppletDataCollector


1 /*
2  * @(#)AppletDataCollector.java 1.9 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.impl.orb ;
9
10 import java.applet.Applet JavaDoc ;
11 import java.util.Properties JavaDoc ;
12
13 public class AppletDataCollector extends DataCollectorBase {
14     private Applet JavaDoc applet ;
15
16     AppletDataCollector( Applet JavaDoc app, Properties JavaDoc props, String JavaDoc localHostName,
17     String JavaDoc configurationHostName )
18     {
19     super( props, localHostName, configurationHostName ) ;
20     this.applet = app ;
21     }
22
23     public boolean isApplet()
24     {
25     return true ;
26     }
27
28     protected void collect( )
29     {
30     checkPropertyDefaults() ;
31
32         findPropertiesFromFile() ;
33
34     // We do not use system properties for applets in order to
35
// avoid security exceptions.
36

37         findPropertiesFromProperties() ;
38         findPropertiesFromApplet( applet ) ;
39     }
40 }
41
Popular Tags