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

org.jboss.as.server.moduleservice.ModuleDefinition Maven / Gradle / Ivy

There is a newer version: 8.2.1.Final
Show newest version
package org.jboss.as.server.moduleservice;

import java.util.Collections;
import java.util.Set;

import org.jboss.as.server.deployment.module.ModuleDependency;
import org.jboss.modules.ModuleIdentifier;
import org.jboss.modules.ModuleSpec;

/**
 *
 * Basically a copy of the same information that is in the module spec, because module spec
 * has no public methods to get anything out of.
 *
 * @author Stuart Douglas
 */
public class ModuleDefinition {

    private final ModuleIdentifier moduleIdentifier;
    private final Set dependencies;
    private final ModuleSpec moduleSpec;

    public ModuleDefinition(final ModuleIdentifier moduleIdentifier, final Set dependencies, final ModuleSpec moduleSpec) {
        this.moduleIdentifier = moduleIdentifier;
        this.dependencies = dependencies;
        this.moduleSpec = moduleSpec;
    }

    public ModuleIdentifier getModuleIdentifier() {
        return moduleIdentifier;
    }

    public ModuleSpec getModuleSpec() {
        return moduleSpec;
    }

    public Set getDependencies() {
        return Collections.unmodifiableSet(dependencies);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy