net.ranides.assira.generic
Class PrivilegedActions

java.lang.Object
  extended by net.ranides.assira.generic.PrivilegedActions

public final class PrivilegedActions
extends Object

Author:
ranides

Method Summary
static
<T> T
$getStaticField(String clazz, String field)
           
static ClassLoader getContextClassLoader()
           
static String getProperty(String key)
          Gets the system property indicated by the specified key.
static String getProperty(String key, String ddefault)
           
static Object getStaticField(Class<?> clazz, String field)
           
static Object getStaticField(String clazz, String field)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getProperty

public static String getProperty(String key)
Gets the system property indicated by the specified key.

Parameters:
key - the name of the system property.
Returns:
the string value of the system property, or the default value if there is no property with that key.
See Also:
System.getProperty(String,String)

getProperty

public static String getProperty(String key,
                                 String ddefault)
Parameters:
key - the name of the system property.
ddefault - a default value.
Returns:
the string value of the system property, or the default value if there is no property with that key.

getContextClassLoader

public static ClassLoader getContextClassLoader()
Returns:

getStaticField

public static Object getStaticField(Class<?> clazz,
                                    String field)

getStaticField

public static Object getStaticField(String clazz,
                                    String field)

$getStaticField

public static <T> T $getStaticField(String clazz,
                                    String field)


Copyright © 2013. All Rights Reserved.