/// <summary>
        /// Constructs a new URLClassLoader for the specified URLs, parent
        /// class loader, and URLStreamHandlerFactory. The parent argument
        /// will be used as the parent class loader for delegation. The
        /// factory argument will be used as the stream handler factory to
        /// obtain protocol handlers when creating new jar URLs.
        ///
        /// <para>If there is a security manager, this method first
        /// calls the security manager's {@code checkCreateClassLoader} method
        /// to ensure creation of a class loader is allowed.
        ///
        /// </para>
        /// </summary>
        /// <param name="urls"> the URLs from which to load classes and resources </param>
        /// <param name="parent"> the parent class loader for delegation </param>
        /// <param name="factory"> the URLStreamHandlerFactory to use when creating URLs
        /// </param>
        /// <exception cref="SecurityException">  if a security manager exists and its
        ///             {@code checkCreateClassLoader} method doesn't allow
        ///             creation of a class loader. </exception>
        /// <exception cref="NullPointerException"> if {@code urls} is {@code null}. </exception>
        /// <seealso cref= SecurityManager#checkCreateClassLoader </seealso>
        public URLClassLoader(URL[] urls, ClassLoader parent, URLStreamHandlerFactory factory) : base(parent)
        {
            // this is to make the stack depth consistent with 1.1
            SecurityManager security = System.SecurityManager;

            if (security != null)
            {
                security.CheckCreateClassLoader();
            }
            Ucp = new URLClassPath(urls, factory);
            Acc = AccessController.Context;
        }
 /// <exception cref="System.Exception"></exception>
 protected override void SetUp()
 {
     Log.V(Tag, "setUp");
     base.SetUp();
     //for some reason a traditional static initializer causes junit to die
     if (!initializedUrlHandler)
     {
         URLStreamHandlerFactory.RegisterSelfIgnoreError();
         initializedUrlHandler = true;
     }
     LoadCustomProperties();
     StartCBLite();
     StartDatabase();
 }
Beispiel #3
0
 public URLClassLoader(URL[] prm1, global::java.lang.ClassLoader prm2, URLStreamHandlerFactory prm3)
 {
 }
Beispiel #4
0
 public static void setURLStreamHandlerFactory(URLStreamHandlerFactory prm1)
 {
 }
Beispiel #5
0
 public static void setURLStreamHandlerFactory(URLStreamHandlerFactory arg0)
 {
     Static.CallMethod(typeof(URL), "setURLStreamHandlerFactory", "(Ljava/net/URLStreamHandlerFactory;)V", arg0);
 }