environment = plan.getEnvironment();
}
}
else if (GeronimoUtils.isEjbJarModule(module)) {
if (getOpenEjbDeploymentPlan(module) != null) {
OpenejbJar plan = getOpenEjbDeploymentPlan(module).getValue();
if (plan != null)
environment = plan.getEnvironment();
}
}
else if (GeronimoUtils.isEarModule(module)) {
if (getApplicationDeploymentPlan(module) != null) {
Application plan = getApplicationDeploymentPlan(module).getValue();
if (plan != null)
environment = plan.getEnvironment();
}
}
else if (GeronimoUtils.isRARModule(module)) {
if (getConnectorDeploymentPlan(module) != null) {
Connector plan = getConnectorDeploymentPlan(module).getValue();
if (plan != null)
environment = plan.getEnvironment();
}
}else if (GeronimoUtils.isAppClientModule(module)) {
if (getAppClientDeploymentPlan(module) != null) {
ApplicationClient plan = getAppClientDeploymentPlan(module).getValue();
if (plan != null)
environment = plan.getServerEnvironment();
}
}
Trace.tracePoint("Exit ", "DependencyHelper.getEnvironment", environment);
return environment;