public static BundleClassLoader newPriviledged( final Bundle bundle, final ClassLoader parent )
    {
        return AccessController.doPrivileged( new PrivilegedAction<BundleClassLoader>()
        {
            public BundleClassLoader run()
            {
                return new BundleClassLoader( bundle, parent );
            }
        } );
    }
public static BundleClassLoader newPriviledged ( final Bundle bundle , final ClassLoader parent ) { return AccessController . doPrivileged ( new PrivilegedAction < BundleClassLoader > ( ) { public BundleClassLoader run ( ) { return new BundleClassLoader ( bundle , parent ) ; } } ) ; }
Privileged factory method.

@param bundle bundle to be used for class loading. Cannot be null.
@param parent parent class loader

@return created bundle class loader

@see BundleClassLoader#BundleClassLoader(Bundle,ClassLoader)