Package org.apache.axis

Examples of org.apache.axis.EngineConfigurationFactory


        return (EngineConfigurationFactory)AccessController.doPrivileged(
                new PrivilegedAction() {
                    public Object run() {
                        ResourceClassIterator services = AxisProperties.getResourceClassIterator(mySpi);

                        EngineConfigurationFactory factory = null;

                        while (factory == null  &&  services.hasNext()) {
                            Class service = services.nextResourceClass().loadClass();
               
                            /* service == null
                             * if class resource wasn't loadable
                             */
                            if (service != null) {
                                factory = newFactory(service, newFactoryParamTypes, params);
                            }
                        }
               
                        if (factory != null) {
                            if(log.isDebugEnabled()) {
                                log.debug(Messages.getMessage("engineFactory", factory.getClass().getName()));
                            }
                        } else {
                            log.error(Messages.getMessage("engineConfigFactoryMissing"));
                            // we should be throwing an exception here,
                            //
View Full Code Here


                        ResourceNameIterator it = nameDiscoverers.findResourceNames(mySpi.getName());
               
                        ResourceClassIterator services =
                            new DiscoverClasses(loaders).findResourceClasses(it);
               
                        EngineConfigurationFactory factory = null;

                        while (factory == null  &&  services.hasNext()) {
                            Class service = services.nextResourceClass().loadClass();
               
                            factory = newFactory(service, newFactoryParamTypes, params);
                        }
               
                        if (factory == null) {
                            try {
                                factory = EngineConfigurationFactoryServlet.newFactory(obj);
                            } catch (RuntimeException e) {
                                log.warn(Messages.getMessage("engineConfigInvokeNewFactory",
                                                              EngineConfigurationFactoryServlet.class.getName(),
                                                              requiredMethod), e);
                            }
               
                            if (factory == null) {
                                try {
                                    // should NEVER return null.
                                    factory = EngineConfigurationFactoryDefault.newFactory(obj);
                                } catch (RuntimeException e) {
                                    log.warn(Messages.getMessage("engineConfigInvokeNewFactory",
                                                                  EngineConfigurationFactoryDefault.class.getName(),
                                                                  requiredMethod), e);
                                }
                            }
                        }
               
                        if (factory != null) {
                            if(log.isDebugEnabled())
                                log.debug(Messages.getMessage("engineFactory", factory.getClass().getName()));
                        } else {
                            log.error(Messages.getMessage("engineConfigFactoryMissing"));
                            // we should be throwing an exception here,
                            //
                            // but again, requires more refactoring than we want to swallow
View Full Code Here

                        ResourceNameIterator it = nameDiscoverers.findResourceNames(mySpi.getName());
               
                        ResourceClassIterator services =
                            new DiscoverClasses(loaders).findResourceClasses(it);
               
                        EngineConfigurationFactory factory = null;

                        while (factory == null  &&  services.hasNext()) {
                            Class service = services.nextResourceClass().loadClass();
               
                            /* service == null
                             * if class resource wasn't loadable
                             */
                            if (service != null) {
                                factory = newFactory(service, newFactoryParamTypes, params);
                            }
                        }
               
                        if (factory != null) {
                            if(log.isDebugEnabled()) {
                                log.debug(Messages.getMessage("engineFactory", factory.getClass().getName()));
                            }
                        } else {
                            log.error(Messages.getMessage("engineConfigFactoryMissing"));
                            // we should be throwing an exception here,
                            //
View Full Code Here

            new DiscoverServiceNames(loaders).findResourceNames(mySpi.getName());

        ResourceClassIterator services =
            new DiscoverClasses(loaders).findResourceClasses(it);

        EngineConfigurationFactory factory = null;
        while (factory == null  &&  services.hasNext()) {
            Class service = services.nextResourceClass().loadClass();

            factory = newFactory(service, newFactoryParamTypes, params);
        }

        if (factory == null) {
            try {
                factory = EngineConfigurationFactoryServlet.newFactory(obj);
            } catch (Exception e) {
                log.warn(JavaUtils.getMessage("engineConfigInvokeNewFactory",
                                              EngineConfigurationFactoryServlet.class.getName(),
                                              requiredMethod), e);
            }

            if (factory == null) {
                try {
                    // should NEVER return null.
                    factory = EngineConfigurationFactoryDefault.newFactory(obj);
                } catch (Exception e) {
                    log.warn(JavaUtils.getMessage("engineConfigInvokeNewFactory",
                                                  EngineConfigurationFactoryDefault.class.getName(),
                                                  requiredMethod), e);
                }
            }
        }

        if (factory != null) {
            log.debug(JavaUtils.getMessage("engineFactory", factory.getClass().getName()));
        } else {
            log.error(JavaUtils.getMessage("engineConfigFactoryMissing"));
            // we should be throwing an exception here,
            //
            // but again, requires more refactoring than we want to swallow
View Full Code Here

        return (EngineConfigurationFactory)AccessController.doPrivileged(
                new PrivilegedAction() {
                    public Object run() {
                        ResourceClassIterator services = AxisProperties.getResourceClassIterator(mySpi);

                        EngineConfigurationFactory factory = null;

                        while (factory == null  &&  services.hasNext()) {
                          try {
                            Class service = services.nextResourceClass().loadClass();
               
                            /* service == null
                             * if class resource wasn't loadable
                             */
                            if (service != null) {
                                factory = newFactory(service, newFactoryParamTypes, params);
                            }
                          } catch (Exception e) {
                            // there was an exception creating the factory
                            // the most likely cause was the JDK 1.4 problem
                            // in the discovery code that requires servlet.jar
                            // to be in the client classpath.  For now, fall
                            // through to the next factory
                          }
                        }
               
                        if (factory != null) {
                            if(log.isDebugEnabled()) {
                                log.debug(Messages.getMessage("engineFactory", factory.getClass().getName()));
                            }
                        } else {
                            log.error(Messages.getMessage("engineConfigFactoryMissing"));
                            // we should be throwing an exception here,
                            //
View Full Code Here

        return (EngineConfigurationFactory)AccessController.doPrivileged(
                new PrivilegedAction() {
                    public Object run() {
                        ResourceClassIterator services = AxisProperties.getResourceClassIterator(mySpi);

                        EngineConfigurationFactory factory = null;

                        while (factory == null  &&  services.hasNext()) {
                          try {
                            Class service = services.nextResourceClass().loadClass();
               
                            /* service == null
                             * if class resource wasn't loadable
                             */
                            if (service != null) {
                                factory = newFactory(service, newFactoryParamTypes, params);
                            }
                          } catch (Exception e) {
                            // there was an exception creating the factory
                            // the most likely cause was the JDK 1.4 problem
                            // in the discovery code that requires servlet.jar
                            // to be in the client classpath.  For now, fall
                            // through to the next factory
                          }
                        }
               
                        if (factory != null) {
                            if(log.isDebugEnabled()) {
                                log.debug(Messages.getMessage("engineFactory", factory.getClass().getName()));
                            }
                        } else {
                            log.error(Messages.getMessage("engineConfigFactoryMissing"));
                            // we should be throwing an exception here,
                            //
View Full Code Here

        return (EngineConfigurationFactory)AccessController.doPrivileged(
                new PrivilegedAction() {
                    public Object run() {
                        ResourceClassIterator services = AxisProperties.getResourceClassIterator(mySpi);

                        EngineConfigurationFactory factory = null;

                        while (factory == null  &&  services.hasNext()) {
                          try {
                            Class service = services.nextResourceClass().loadClass();
               
                            /* service == null
                             * if class resource wasn't loadable
                             */
                            if (service != null) {
                                factory = newFactory(service, newFactoryParamTypes, params);
                            }
                          } catch (Exception e) {
                            // there was an exception creating the factory
                            // the most likely cause was the JDK 1.4 problem
                            // in the discovery code that requires servlet.jar
                            // to be in the client classpath.  For now, fall
                            // through to the next factory
                          }
                        }
               
                        if (factory != null) {
                            if(log.isDebugEnabled()) {
                                log.debug(Messages.getMessage("engineFactory", factory.getClass().getName()));
                            }
                        } else {
                            log.error(Messages.getMessage("engineConfigFactoryMissing"));
                            // we should be throwing an exception here,
                            //
View Full Code Here

TOP

Related Classes of org.apache.axis.EngineConfigurationFactory

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.