Package org.apache.wink.server.handlers

Examples of org.apache.wink.server.handlers.HandlersFactory


        if (handlersFactoryClassName != null) {
            try {
                logger.debug("Handlers Factory Class is: {}", handlersFactoryClassName);
                Class<HandlersFactory> handlerFactoryClass =
                    (Class<HandlersFactory>)Class.forName(handlersFactoryClassName);
                HandlersFactory handlersFactory = handlerFactoryClass.newInstance();
                if (requestUserHandlers == null) {
                    requestUserHandlers =
                        (List<RequestHandler>)handlersFactory.getRequestHandlers();
                }
                if (responseUserHandlers == null) {
                    responseUserHandlers =
                        (List<ResponseHandler>)handlersFactory.getResponseHandlers();
                }
                if (errorUserHandlers == null) {
                    errorUserHandlers = (List<ResponseHandler>)handlersFactory.getErrorHandlers();
                }
            } catch (ClassNotFoundException e) {
                logger.error(Messages.getMessage("isNotAClass", handlersFactoryClassName), e);
            } catch (InstantiationException e) {
                logger.error(Messages.getMessage("classInstantiationException",
View Full Code Here


                // use ClassUtils.getClass instead of Class.forName so we have
                // classloader visibility into the Web module in J2EE
                // environments
                Class<HandlersFactory> handlerFactoryClass =
                    (Class<HandlersFactory>)ClassUtils.getClass(handlersFactoryClassName);
                HandlersFactory handlersFactory = handlerFactoryClass.newInstance();
                if (requestUserHandlers == null) {
                    requestUserHandlers =
                        (List<RequestHandler>)handlersFactory.getRequestHandlers();
                }
                if (responseUserHandlers == null) {
                    responseUserHandlers =
                        (List<ResponseHandler>)handlersFactory.getResponseHandlers();
                }
                if (errorUserHandlers == null) {
                    errorUserHandlers = (List<ResponseHandler>)handlersFactory.getErrorHandlers();
                }
            } catch (ClassNotFoundException e) {
                logger.error(Messages.getMessage("isNotAClassWithMsgFormat",
                                                 handlersFactoryClassName), e);
            } catch (InstantiationException e) {
View Full Code Here

                // use ClassUtils.getClass instead of Class.forName so we have
                // classloader visibility into the Web module in J2EE
                // environments
                Class<HandlersFactory> handlerFactoryClass =
                    (Class<HandlersFactory>)ClassUtils.getClass(handlersFactoryClassName);
                HandlersFactory handlersFactory = handlerFactoryClass.newInstance();
                if (requestUserHandlers == null) {
                    requestUserHandlers =
                        (List<RequestHandler>)handlersFactory.getRequestHandlers();
                }
                if (responseUserHandlers == null) {
                    responseUserHandlers =
                        (List<ResponseHandler>)handlersFactory.getResponseHandlers();
                }
                if (errorUserHandlers == null) {
                    errorUserHandlers = (List<ResponseHandler>)handlersFactory.getErrorHandlers();
                }
            } catch (ClassNotFoundException e) {
                logger.error(Messages.getMessage("isNotAClassWithMsgFormat",
                                                 handlersFactoryClassName), e);
            } catch (InstantiationException e) {
View Full Code Here

                // use ClassUtils.getClass instead of Class.forName so we have
                // classloader visibility into the Web module in J2EE
                // environments
                Class<HandlersFactory> handlerFactoryClass =
                    (Class<HandlersFactory>)ClassUtils.getClass(handlersFactoryClassName);
                HandlersFactory handlersFactory = handlerFactoryClass.newInstance();
                if (requestUserHandlers == null) {
                    requestUserHandlers =
                        (List<RequestHandler>)handlersFactory.getRequestHandlers();
                }
                if (responseUserHandlers == null) {
                    responseUserHandlers =
                        (List<ResponseHandler>)handlersFactory.getResponseHandlers();
                }
                if (errorUserHandlers == null) {
                    errorUserHandlers = (List<ResponseHandler>)handlersFactory.getErrorHandlers();
                }
            } catch (ClassNotFoundException e) {
                logger.error(Messages.getMessage("isNotAClassWithMsgFormat", //$NON-NLS-1$
                                                 handlersFactoryClassName), e);
            } catch (InstantiationException e) {
View Full Code Here

TOP

Related Classes of org.apache.wink.server.handlers.HandlersFactory

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.