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