1 22 package org.jboss.test.hellojrmpiiop.util; 23 24 import java.io.*; 25 import java.security.*; 26 27 33 public class HelloUtil 34 { 35 37 39 41 43 public InputStream getResource(final String name, final Object req) 45 { 46 return (InputStream)AccessController.doPrivileged(new PrivilegedAction() 47 { 48 public Object run() 49 { 50 return req.getClass().getClassLoader().getResourceAsStream(name); 51 } 52 }); 53 } 54 } 55 | Popular Tags |