protected static ModuleClassLoaderFactory createFactory(final ScriptArchive scriptArchive) {
        return new ModuleClassLoaderFactory() {
            public ModuleClassLoader create(final Configuration configuration) {
                return AccessController.doPrivileged(
                    new PrivilegedAction<JBossModuleClassLoader>() {
                        public JBossModuleClassLoader run() {
                            return new JBossModuleClassLoader(configuration, scriptArchive);
                        }
                    });
            }
        };
    }
protected static ModuleClassLoaderFactory createFactory ( final ScriptArchive scriptArchive ) { return new ModuleClassLoaderFactory ( ) { public ModuleClassLoader create ( final Configuration configuration ) { return AccessController . doPrivileged ( new PrivilegedAction < JBossModuleClassLoader > ( ) { public JBossModuleClassLoader run ( ) { return new JBossModuleClassLoader ( configuration , scriptArchive ) ; } } ) ; } } ; }
Creates a ModuleClassLoaderFactory that produces a {@link JBossModuleClassLoader}.
This method is necessary to inject our custom {@link ModuleClassLoader} into
the {@link ModuleSpec}