Package com.sun.enterprise.web

Examples of com.sun.enterprise.web.VirtualServer$HttpProbeImpl


        if (System.getProperty("com.sun.enterprise.web.useWebcore") != null){
            useWebcore = Boolean.parseBoolean(
                  System.getProperty("com.sun.enterprise.web.useWebcore"));
        }
           
        VirtualServer vs = null;
        if ( useWebcore ) {   
             /*
             * Ideally, this would be as simple as:
             *
             *     return new com.sun.enterprise.web.HttpServiceVirtualServer();
             *
             * but importing this class would cause a circular dependency
             * between appserv-core-ee and appserv-pwc-linkage
             */

            try {
                vs = (VirtualServer) Class.forName("com.sun.enterprise.web.HttpServiceVirtualServer").newInstance();
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        } else {
            vs = new VirtualServer();
        }  

        return vs;

    }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.web.VirtualServer$HttpProbeImpl

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.