org.jboss.as.server.moduleservice.ModuleDefinition Maven / Gradle / Ivy
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);
}
}