/[classpath]/inetlib/source/gnu/inet/util/GetSystemPropertyAction.java
ViewVC logotype

Diff of /inetlib/source/gnu/inet/util/GetSystemPropertyAction.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by dog, Thu Oct 21 15:21:55 2004 UTC revision 1.3 by dog, Thu Nov 25 22:15:05 2004 UTC
# Line 1  Line 1 
1  /*  /*
2   * $Id$   * GetSystemPropertyAction.java
3   * Copyright (C) 2004 The Free Software Foundation   * Copyright (C) 2004 The Free Software Foundation
4   *   *
5   * This file is part of GNU inetlib, a library.   * This file is part of GNU inetlib, a library.
# Line 46  import java.security.PrivilegedAction; Line 46  import java.security.PrivilegedAction;
46   * @author <a href='mailto:dog@gnu.org'>Chris Burdess</a>   * @author <a href='mailto:dog@gnu.org'>Chris Burdess</a>
47   */   */
48  public class GetSystemPropertyAction  public class GetSystemPropertyAction
49  implements PrivilegedAction    implements PrivilegedAction
50  {  {
51    
52    final String name;    final String name;
# Line 55  implements PrivilegedAction Line 55  implements PrivilegedAction
55     * Constructor.     * Constructor.
56     * @param name the the name of the system property to retrieve     * @param name the the name of the system property to retrieve
57     */     */
58    public GetSystemPropertyAction (String name)    public GetSystemPropertyAction(String name)
59    {    {
60      this.name = name;      this.name = name;
61    }    }
62    
63    public Object run ()    public Object run()
64    {    {
65      return System.getProperty (name);      return System.getProperty(name);
66    }    }
67        
68  }  }
69    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26