if (((ExtendedDeploymentContext)context).getParentContext() == null) {
@SuppressWarnings("unchecked") private Properties getActionReportProperties(DeploymentContext deployContext) { if (!wmInfo.getDescriptor().getApplication().isVirtual()) { deployContext = ((ExtendedDeploymentContext)deployContext).getParentContext(); } return deployContext.getActionReport().getExtraProperties(); }
public static BundleDescriptor getCurrentBundleForContext( DeploymentContext context) { ExtendedDeploymentContext ctx = (ExtendedDeploymentContext)context; Application application = context.getModuleMetaData(Application.class); if (application == null) return null; // this can happen for non-JavaEE type deployment. e.g., issue 15869 if (ctx.getParentContext() == null) { if (application.isVirtual()) { // standalone module return application.getStandaloneBundleDescriptor(); } else { // top level return application; } } else { // a sub module of ear return application.getModuleByUri(ctx.getModuleUri()); } } }
public static BundleDescriptor getCurrentBundleForContext( DeploymentContext context) { ExtendedDeploymentContext ctx = (ExtendedDeploymentContext)context; Application application = context.getModuleMetaData(Application.class); if (application == null) return null; // this can happen for non-JavaEE type deployment. e.g., issue 15869 if (ctx.getParentContext() == null) { if (application.isVirtual()) { // standalone module return application.getStandaloneBundleDescriptor(); } else { // top level return application; } } else { // a sub module of ear return application.getModuleByUri(ctx.getModuleUri()); } }
} else { // the application is EAR ExtendedDeploymentContext exdc = (ExtendedDeploymentContext) depc; actionReportProps = exdc.getParentContext().getActionReport().getExtraProperties();
} else { // the application is EAR ExtendedDeploymentContext exdc = (ExtendedDeploymentContext) depc; actionReportProps = exdc.getParentContext().getActionReport().getExtraProperties();