Permalink
Browse files

JBossRuntime: make the module loader returned of type CeylonModuleLoader

  • Loading branch information...
1 parent a95d679 commit 09e371f41ff4137a818978e756224c60c2fae927 @FroMage FroMage committed Feb 18, 2013
@@ -44,7 +44,7 @@
public abstract class AbstractJBossRuntime extends AbstractRuntime {
@Override
public ClassLoader createClassLoader(String name, String version, Configuration conf) throws Exception {
- ModuleLoader moduleLoader = createModuleLoader(conf);
+ CeylonModuleLoader moduleLoader = createModuleLoader(conf);
ModuleIdentifier moduleIdentifier;
try{
moduleIdentifier = ModuleIdentifier.fromString(name + ":" + version);
@@ -124,5 +124,5 @@ protected RepositoryManager createRepository(Configuration conf) {
* @param conf the configuration
* @return the module loader
*/
- protected abstract ModuleLoader createModuleLoader(Configuration conf);
+ protected abstract CeylonModuleLoader createModuleLoader(Configuration conf);
}
@@ -18,8 +18,8 @@
package ceylon.modules.jboss.runtime;
import ceylon.modules.Configuration;
+
import com.redhat.ceylon.cmr.api.RepositoryManager;
-import org.jboss.modules.ModuleLoader;
/**
* Default Ceylon Modules runtime.
@@ -28,7 +28,7 @@
*/
public class JBossRuntime extends AbstractJBossRuntime {
@Override
- protected ModuleLoader createModuleLoader(Configuration conf) {
+ protected CeylonModuleLoader createModuleLoader(Configuration conf) {
RepositoryManager repository = createRepository(conf);
return new CeylonModuleLoader(repository);
}

0 comments on commit 09e371f

Please sign in to comment.