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. |
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; |
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 |
|
|