Commit 3e834311 authored by Christophe Demarey's avatar Christophe Demarey
Browse files

Fix a side-effect of the AF SCA-ization on the explorer.

parent cf643034
......@@ -175,7 +175,7 @@ public class ExplorerGUI
}
// Search all META-INF/FraSCAti-Explorer.xml resources in the classpath and
// laad them with the Explorer Framework.
// load them with the Explorer Framework.
// Then each JAR in the classpath could provide its own FraSCAti Explorer plugins.
try {
for(URL url : Collections.list(getClass().getClassLoader().getResources(EXPLORER_STD_CFG_FILES_NAME))) {
......@@ -231,6 +231,7 @@ public class ExplorerGUI
// Init the domain manager
domainManager.init();
FrascatiExplorerClassResolver.setClassLoader( getDomainConfig().getClassLoader() );
}
// --------------------------------------------------------------------------
......
/***
* OW2 FraSCAti Explorer
* Copyright (C) 2008-2010 INRIA, USTL
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Contact: frascati@ow2.org
*
* Author: Christophe Demarey
*
* Contributor(s):
*
*/
package org.ow2.frascati.explorer;
import java.net.URLClassLoader;
import org.objectweb.util.explorer.core.common.lib.ClassResolver;
/**
* Utility class used to set the explorer framework classloader.
*/
public class FrascatiExplorerClassResolver extends ClassResolver {
/**
* Set tthe explorer classloader to use.
*
* @param classLoader an URLClassLoader.
*/
public static void setClassLoader(ClassLoader classLoader) {
current_ = (URLClassLoader) classLoader;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment