ceylon.modules.jboss.runtime.ClassLoaderHolderImpl Maven / Gradle / Ivy
package ceylon.modules.jboss.runtime;
import ceylon.modules.spi.runtime.ClassLoaderHolder;
import org.jboss.modules.Module;
/**
* @author Ales Justin
*/
class ClassLoaderHolderImpl implements ClassLoaderHolder {
private final Module module;
ClassLoaderHolderImpl(Module module) {
this.module = module;
}
public ClassLoader getClassLoader() {
return SecurityActions.getClassLoader(module);
}
public String getVersion() {
return module.getIdentifier().getSlot();
}
@Override
public String toString() {
return module.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy