All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ceylon.modules.jboss.runtime.ClassLoaderHolderImpl Maven / Gradle / Ivy

There is a newer version: 1.3.3
Show newest version
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