Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*    */ package org.jboss.util;
 /*    */ 
 /*    */ import java.security.AccessController;
 /*    */ import java.security.PrivilegedAction;
 /*    */ 
 /*    */ class SysPropertyActions
 /*    */ {
 /*    */   public static String getProperty(String nameString defaultValue)
 /*    */   {
/*    */     String prop;
/*    */     String prop;
/* 63 */     if (System.getSecurityManager() == null)
/* 64 */       prop = ..getProperty(namedefaultValue);
/*    */     else
/* 66 */       prop = ..getProperty(namedefaultValue);
/* 67 */     return prop;
/*    */   }
/*    */ 
/*    */   static abstract interface SysProps
/*    */   {
/* 36 */     public static final SysProps NON_PRIVILEDGED = new SysProps()
/*    */     {
/*    */       public String getProperty(String nameString defaultValue)
/*    */       {
/* 40 */         return System.getProperty(namedefaultValue);
/*    */       }
/* 36 */     };
/*    */ 
/* 43 */     public static final SysProps PRIVILEDGED = new SysProps()
/*    */     {
/*    */       public String getProperty(String nameString defaultValue)
/*    */       {
/* 47 */         PrivilegedAction action = new PrivilegedAction(namedefaultValue)
/*    */         {
/*    */           public Object run()
/*    */           {
/* 51 */             return System.getProperty(this.this.);
/*    */           }
/*    */         };
/* 54 */         return (String)AccessController.doPrivileged(action);
/*    */       }
/* 43 */     };
/*    */ 
/*    */     public abstract String getProperty(String paramString1String paramString2);
/*    */   }
/*    */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
 * Qualified Name:     org.jboss.util.SysPropertyActions
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X