Package com.sun.enterprise.deployment.runtime.web

Examples of com.sun.enterprise.deployment.runtime.web.ClassLoader


      CacheNode cn = new CacheNode();
      cn.writeDescriptor(web, RuntimeTagNames.CACHE, cache);
  }
 
  // class-loader?
        ClassLoader classLoader = sunWebApp.getClassLoader();
        if (classLoader!=null) {
            ClassLoaderNode cln = new ClassLoaderNode();
            cln.writeDescriptor(web, RuntimeTagNames.CLASS_LOADER, classLoader);
        }
View Full Code Here


        // message-destination-ref*
        MessageDestinationRefNode.writeMessageDestinationReferences(web,
            bundleDescriptor);

        // class-loader?
        ClassLoader classLoader = sunSipApp.getClassLoader();

        if (classLoader != null) {
            ClassLoaderNode cln = new ClassLoaderNode();
            cln.writeDescriptor(web, RuntimeTagNames.CLASS_LOADER, classLoader);
        }
View Full Code Here

      SunWebApp sunWebApp = wbd.getSunDescriptor();
      if (sunWebApp == null) {
    return;
      }

            ClassLoader classloader = sunWebApp.getClassLoader();
            if (classloader != null) {
                String delegate = classloader.getAttributeValue("Delegate");
                if (delegate != null) {
                    jspc.setDelegate(Boolean.valueOf(delegate).booleanValue());
                }
            }
View Full Code Here

        } else if (name.equals(RuntimeTagNames.SAVE_SESSIONS_ENABLED)) {
            WebBundleDescriptor descriptor = (WebBundleDescriptor)getParentNode().getDescriptor();
            descriptor.setKeepState(value);
        } else if (name.equals(RuntimeTagNames.PREFER_WEB_INF_CLASSES)) {
            WebBundleDescriptor descriptor = (WebBundleDescriptor)getParentNode().getDescriptor();
            ClassLoader clBean = descriptor.getSunDescriptor().getClassLoader();
            if (clBean == null) {
                clBean = new ClassLoader();
                descriptor.getSunDescriptor().setClassLoader(clBean);
            }
            clBean.setAttributeValue(ClassLoader.DELEGATE,
                    Boolean.toString(!Boolean.parseBoolean(value)));
        } else {
            super.setElementValue(element, value);
        }
    }
View Full Code Here

                webBundleDescriptor.getWebComponentByCanonicalName("default");
        InitializationParameter listingsParam = getDefaultServletInitParam(
                defaultServletDesc, "listings", false);
        InitializationParameter sortedByParam = getDefaultServletInitParam(
                defaultServletDesc, "sortedBy", false);
        ClassLoader clBean = webBundleDescriptor.getSunDescriptor().getClassLoader();

        containerDescriptorNode = appendChild(root, RuntimeTagNames.CONTAINER_DESCRIPTOR);

        if (listingsParam != null) {
            appendTextChild(containerDescriptorNode,
                    RuntimeTagNames.INDEX_DIRECTORY_ENALBED, listingsParam.getValue());
        }
       
        if (sortedByParam != null) {
            appendTextChild(containerDescriptorNode,
                    RuntimeTagNames.INDEX_DIRECTORY_SORT_BY, sortedByParam.getValue());
        }

        appendTextChild(containerDescriptorNode, RuntimeTagNames.SAVE_SESSIONS_ENABLED,
                Boolean.toString(webBundleDescriptor.getKeepState()));

        if (clBean != null) {
            appendTextChild(containerDescriptorNode,
                    RuntimeTagNames.PREFER_WEB_INF_CLASSES,
                    clBean.getAttributeValue(ClassLoader.DELEGATE));
        }

        return containerDescriptorNode;
    }
View Full Code Here

      CacheNode cn = new CacheNode();
      cn.writeDescriptor(web, RuntimeTagNames.CACHE, cache);
  }
 
  // class-loader?
        ClassLoader classLoader = sunWebApp.getClassLoader();
        if (classLoader!=null) {
            ClassLoaderNode cln = new ClassLoaderNode();
            cln.writeDescriptor(web, RuntimeTagNames.CLASS_LOADER, classLoader);
        }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.deployment.runtime.web.ClassLoader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.