Method from org.apache.geronimo.st.v11.core.GeronimoV11Utils Detail: |
public static JAXBElement getApplicationClientDeploymentPlan(IFile file) throws Exception {
Trace.tracePoint("ENTRY",
"GeronimoV11Utils.getApplicationClientDeploymentPlan", file);
if (file.getName().equals(APP_CLIENT_PLAN_NAME) && file.exists()) {
return JAXBUtils.unmarshalFilterDeploymentPlan(file);
}
Trace.tracePoint("EXIT",
"GeronimoV11Utils.getApplicationClientDeploymentPlan", null);
return null;
}
|
public static JAXBElement<ApplicationType> getApplicationDeploymentPlan(IModule module) throws Exception {
return getApplicationDeploymentPlan(getVirtualComponent(module));
}
|
public static JAXBElement getApplicationDeploymentPlan(IVirtualComponent comp) throws Exception {
return getApplicationDeploymentPlan(getApplicationDeploymentPlanFile(comp));
}
|
public static JAXBElement getApplicationDeploymentPlan(IFile file) throws Exception {
Trace.tracePoint("ENTRY",
"GeronimoV11Utils.getApplicationClientDeploymentPlan", file);
if (file.getName().equals(APP_PLAN_NAME) && file.exists()) {
return JAXBUtils.unmarshalFilterDeploymentPlan(file);
}
Trace.tracePoint("EXIT",
"GeronimoV11Utils.getApplicationClientDeploymentPlan", null);
return null;
}
|
public static String getConfigId(IModule module) throws Exception {
EnvironmentType environment = null;
if (isWebModule(module)) {
JAXBElement< WebAppType > webapptype=getWebDeploymentPlan(module);
WebAppType plan = webapptype.getValue();
if (plan != null)
environment = plan.getEnvironment();
} else if (isEjbJarModule(module)) {
OpenejbJarType plan = getOpenEjbDeploymentPlan(module).getValue();
// if (plan != null)
// environment = plan.getEnvironment();
} else if (isEarModule(module)) {
ApplicationType plan = getApplicationDeploymentPlan(module).getValue();
if (plan != null)
environment = plan.getEnvironment();
} else if (isRARModule(module)) {
ConnectorType plan = getConnectorDeploymentPlan(module).getValue();
if (plan != null)
environment = plan.getEnvironment();
}
if (environment != null
&& environment.getModuleId() != null) {
Trace.tracePoint("EXIT", "GeronimoV11Utils.getConfigId", getQualifiedConfigID(environment.getModuleId()));
return getQualifiedConfigID(environment.getModuleId());
}
return getId(module);
}
|
public static JAXBElement<ConnectorType> getConnectorDeploymentPlan(IModule module) throws Exception {
return getConnectorDeploymentPlan(getVirtualComponent(module));
}
|
public static JAXBElement getConnectorDeploymentPlan(IVirtualComponent comp) throws Exception {
return getConnectorDeploymentPlan(getConnectorDeploymentPlanFile(comp));
}
|
public static JAXBElement getConnectorDeploymentPlan(IFile file) throws Exception {
Trace.tracePoint("ENTRY",
"GeronimoV11Utils.getConnectorDeploymentPlan", file);
if (file.getName().equals(CONNECTOR_PLAN_NAME) && file.exists()) {
return JAXBUtils.unmarshalFilterDeploymentPlan(file);
}
Trace.tracePoint("EXIT", "GeronimoV11Utils.getConnectorDeploymentPlan",
null);
return null;
}
|
public static String getContextRoot(IModule module) throws Exception {
String contextRoot = null;
WebAppType deploymentPlan = getWebDeploymentPlan(module).getValue();
if (deploymentPlan != null)
contextRoot = deploymentPlan.getContextRoot();
if (contextRoot == null)
contextRoot = GeronimoUtils.getContextRoot(module);
return contextRoot;
}
|
public static JAXBElement getDeploymentPlan(IFile file) throws Exception {
Trace.tracePoint("ENTRY", "GeronimoV11Utils.getDeploymentPlan", file);
if (!file.exists()) {
return null;
}
if (file.getName().equals(GeronimoUtils.APP_PLAN_NAME))
return getApplicationDeploymentPlan(file);
else if (file.getName().equals(GeronimoUtils.OPENEJB_PLAN_NAME))
return getOpenEjbDeploymentPlan(file);
else if (file.getName().equals(GeronimoUtils.WEB_PLAN_NAME))
return getWebDeploymentPlan(file);
else if (file.getName().equals(GeronimoUtils.CONNECTOR_PLAN_NAME))
return getConnectorDeploymentPlan(file);
else if (file.getName().equals(GeronimoUtils.APP_CLIENT_PLAN_NAME))
return getApplicationClientDeploymentPlan(file);
Trace.tracePoint("EXIT", "GeronimoV11Utils.getDeploymentPlan", null);
return null;
}
|
public static JAXBElement<OpenejbJarType> getOpenEjbDeploymentPlan(IModule module) throws Exception {
return getOpenEjbDeploymentPlan(getVirtualComponent(module));
}
|
public static JAXBElement getOpenEjbDeploymentPlan(IVirtualComponent comp) throws Exception {
return getOpenEjbDeploymentPlan(getOpenEjbDeploymentPlanFile(comp));
}
|
public static JAXBElement getOpenEjbDeploymentPlan(IFile file) throws Exception {
Trace.tracePoint("ENTRY", "GeronimoV11Utils.getOpenEjbDeploymentPlan",
file);
if (file.getName().equals(OPENEJB_PLAN_NAME) && file.exists()) {
return JAXBUtils.unmarshalFilterDeploymentPlan(file);
}
Trace.tracePoint("EXIT", "GeronimoV11Utils.getOpenEjbDeploymentPlan",
null);
return null;
}
|
public static String getQualifiedConfigID(ArtifactType artifact) {
return getQualifiedConfigID(artifact.getGroupId(), artifact
.getArtifactId(), artifact.getVersion(), artifact.getType());
}
|
public static String getQualifiedConfigID(String groupId,
String artifactId,
String version,
String type) {
return groupId + "/" + artifactId + "/" + version + "/" + type;
}
|
public static JAXBElement<WebAppType> getWebDeploymentPlan(IModule module) throws Exception {
return getWebDeploymentPlan(getVirtualComponent(module));
}
|
public static JAXBElement getWebDeploymentPlan(IVirtualComponent comp) throws Exception {
return getWebDeploymentPlan(getWebDeploymentPlanFile(comp));
}
|
public static JAXBElement getWebDeploymentPlan(IFile file) throws Exception {
Trace
.tracePoint("ENTRY", "GeronimoV11Utils.getWebDeploymentPlan",
file);
if (file.getName().equals(WEB_PLAN_NAME) && file.exists()) {
return JAXBUtils.unmarshalFilterDeploymentPlan(file);
}
Trace.tracePoint("EXIT", "GeronimoV11Utils.getWebDeploymentPlan", null);
return null;
}
|