/** * Returns a string representation * @return a printable string about myself */ public String toString() { return "Module Dependency : " + getName() + ":" + getVersion(); } }
/** * Returns a string representation * @return a printable string about myself */ public String toString() { return "Module Dependency : " + getName() + ":" + getVersion(); } }
/** * Create and add a new module to this module's list of * imports. * @param dependency new module's definition */ public Module addImport(ModuleDependency dependency) { ModuleImpl newModule; if (dependency.isShared()) { newModule = (ModuleImpl)registry.makeModuleFor(dependency.getName(), dependency.getVersion()); } else { newModule = registry.newPrivateModuleFor(dependency.getName(), dependency.getVersion()); } addImport(newModule); return newModule; }
/** * Create and add a new module to this module's list of * imports. * @param dependency new module's definition */ public Module addImport(ModuleDependency dependency) { ModuleImpl newModule; if (dependency.isShared()) { newModule = (ModuleImpl)registry.makeModuleFor(dependency.getName(), dependency.getVersion()); } else { newModule = registry.newPrivateModuleFor(dependency.getName(), dependency.getVersion()); } addImport(newModule); return newModule; }
ModuleImpl depModule = (ModuleImpl)registry.makeModuleFor(dependency.getName(), dependency.getVersion()); if (depModule==null) { state = ModuleState.ERROR;
ModuleImpl depModule = (ModuleImpl)registry.makeModuleFor(dependency.getName(), dependency.getVersion()); if (depModule==null) { state = ModuleState.ERROR;