if(unresolved != resolved) {
moduleInfo = resolved;
}
}
if(moduleInfo == null) {
JavaEEApplicationInfo unresolved = new JavaEEApplicationInfoImpl();
unresolved.setUri(URI.create(archive));
JavaEEApplicationInfo resolved = resolver.resolveModel(JavaEEApplicationInfo.class, unresolved);
if(unresolved != resolved) {
moduleInfo = resolved;
}
}
} else if(uri.endsWith(".war")) {
WebModuleInfo webModuleInfo = new WebModuleInfoImpl();
webModuleInfo.setUri(URI.create(archive));
webModuleInfo = resolver.resolveModel(WebModuleInfo.class, webModuleInfo);
moduleInfo = webModuleInfo;
} else if(uri.endsWith(".jar")) {
EjbModuleInfo ejbModuleInfo = new EjbModuleInfoImpl();
ejbModuleInfo.setUri(URI.create(archive));
ejbModuleInfo = resolver.resolveModel(EjbModuleInfo.class, ejbModuleInfo);
moduleInfo = ejbModuleInfo;
} else if(uri.endsWith(".ear")) {
final JavaEEApplicationInfo appInfo = new JavaEEApplicationInfoImpl();
appInfo.setUri(URI.create(archive));
ExternalEarInfo unresolved = new ExternalEarInfo() {
public JavaEEApplicationInfo getAppInfo() {
return appInfo;
}
public Composite getAppComposite() {