/** * visit a web component descriptor * * @param descriptor the web component */ public void accept(WebComponentDescriptor descriptor) { //set default value if (descriptor.getLoadOnStartUp() == null) { descriptor.setLoadOnStartUp(-1); } if (descriptor.isAsyncSupported() == null) { descriptor.setAsyncSupported(false); } MultipartConfig multipartConfig = descriptor.getMultipartConfig(); if (multipartConfig != null) { if (multipartConfig.getMaxFileSize() == null) { multipartConfig.setMaxFileSize(new Long(-1)); } if (multipartConfig.getMaxRequestSize() == null) { multipartConfig.setMaxRequestSize(new Long(-1)); } if (multipartConfig.getFileSizeThreshold() == null) { multipartConfig.setFileSizeThreshold(new Integer(0)); } } computeRuntimeDefault(descriptor); }
if (getLoadOnStartUp() == null) { setLoadOnStartUp(other.getLoadOnStartUp());
if (descriptor.getLoadOnStartUp()!=null) { appendTextChild(myNode, WebTagNames.LOAD_ON_STARTUP, String.valueOf(descriptor.getLoadOnStartUp()));
/** * The copy constructor. */ public WebComponentDescriptor(WebComponentDescriptor other) { setCanonicalName(other.getCanonicalName()); setServlet(other.isServlet()); setWebComponentImplementation( other.getWebComponentImplementation()); getInitializationParameterSet().addAll( other.getInitializationParameterSet()); getUrlPatternsSet().addAll(other.getUrlPatternsSet()); setLoadOnStartUp(other.getLoadOnStartUp()); getSecurityRoleReferenceSet().addAll( other.getSecurityRoleReferenceSet()); setRunAsIdentity(other.getRunAsIdentity()); setAsyncSupported(other.isAsyncSupported()); setMultipartConfig(other.getMultipartConfig()); setWebBundleDescriptor(other.getWebBundleDescriptor()); setConflict(other.isConflict()); }
if (webCompDesc.getLoadOnStartUp() == null) { webCompDesc.setLoadOnStartUp(webServletAn.loadOnStartup());
if (webComponentDesc.getLoadOnStartUp() != null) { wrapper.setLoadOnStartup(webComponentDesc.getLoadOnStartUp());