public WebModule deploy(WebModule webModule) throws OpenEJBException { WebApp webApp = webModule.getWebApp(); if (webApp != null && (webApp.isMetadataComplete())) return webModule;
private static boolean isMetadataComplete(final WebModule webModule, final EjbModule ejbModule) { if (webModule.getWebApp() == null) { return false; } if (!webModule.getWebApp().isMetadataComplete()) { return false; } // At this point we know the web.xml is metadata-complete // We need to determine if there are cdi or ejb xml files if (webModule.getAltDDs().get("beans.xml") == null) { return true; } if (ejbModule.getEjbJar() == null) { return true; } return ejbModule.getEjbJar().isMetadataComplete(); }
private static boolean isMetadataComplete(final WebModule webModule, final EjbModule ejbModule) { if (webModule.getWebApp() == null) { return false; } if (!webModule.getWebApp().isMetadataComplete()) { return false; } // At this point we know the web.xml is metadata-complete // We need to determine if there are cdi or ejb xml files if (webModule.getAltDDs().get("beans.xml") == null) { return true; } if (ejbModule.getEjbJar() == null) { return true; } return ejbModule.getEjbJar().isMetadataComplete(); }
/** * If the web.xml is metadata-complete and there is no ejb-jar.xml * then per specification we use the web.xml metadata-complete setting * to imply the same for EJBs. * * @param webModule WebModule * @param ejbModule EjbModule */ private static void fillEjbJar(final WebModule webModule, final EjbModule ejbModule) { final Object o = webModule.getAltDDs().get("ejb-jar.xml"); if (o != null) { return; } if (ejbModule.getEjbJar() != null) { return; } final EjbJar ejbJar = new EjbJar(); final WebApp webApp = webModule.getWebApp(); ejbJar.setMetadataComplete(webApp.isMetadataComplete()); ejbModule.setEjbJar(ejbJar); }
/** * If the web.xml is metadata-complete and there is no ejb-jar.xml * then per specification we use the web.xml metadata-complete setting * to imply the same for EJBs. * * @param webModule WebModule * @param ejbModule EjbModule */ private static void fillEjbJar(final WebModule webModule, final EjbModule ejbModule) { final Object o = webModule.getAltDDs().get("ejb-jar.xml"); if (o != null) { return; } if (ejbModule.getEjbJar() != null) { return; } final EjbJar ejbJar = new EjbJar(); final WebApp webApp = webModule.getWebApp(); ejbJar.setMetadataComplete(webApp.isMetadataComplete()); ejbModule.setEjbJar(ejbJar); }
public WebModule deploy(final WebModule webModule) throws OpenEJBException { WebApp webApp = webModule.getWebApp(); if (webApp != null && webApp.isMetadataComplete()) { return webModule;
public WebModule deploy(final WebModule webModule) throws OpenEJBException { WebApp webApp = webModule.getWebApp(); if (webApp != null && webApp.isMetadataComplete()) { return webModule;
if (webApp != null && webApp.isMetadataComplete()) { return webModule;
if (webApp != null && webApp.isMetadataComplete()) return webModule;
if (webApp != null && webApp.isMetadataComplete()) { return webModule;
if (INITIAL_WEB_XML_SCHEMA_VERSION.get(webModule.getEarContext().getGeneralData()) >= 2.5f && !webApp.isMetadataComplete()) { MergeHelper.processWebFragmentsAndAnnotations(earContext, webModule, bundle, webApp);