* @param dc DeploymentContext
*/
public void populateResourceConfigInAppInfo(DeploymentContext dc){
String appName = getAppNameFromDeployCmdParams(dc);
Application application = applications.getApplication(appName);
ApplicationInfo appInfo = appRegistry.get(appName);
if(application != null && appInfo != null){
Resources appScopedResources = application.getResources();
if(appScopedResources != null){
appInfo.addTransientAppMetaData(ServerTags.APPLICATION, application);
appInfo.addTransientAppMetaData(application.getName()+"-resources", appScopedResources);
}
List<Module> modules = application.getModule();
if(modules != null){
for(Module module : modules){
Resources moduleScopedResources = module.getResources();
if(moduleScopedResources != null){
appInfo.addTransientAppMetaData(module.getName()+"-resources", moduleScopedResources);
}
}
}
}
}