Package org.jboss.as.connector.adapters.jdbc.util

Examples of org.jboss.as.connector.adapters.jdbc.util.Injection.inject()


                    ClassLoader cl = Thread.currentThread().getContextClassLoader();
                    Class<?> clazz = cl.loadClass(exceptionSorterClassName);
                    exceptionSorter = (ExceptionSorter) clazz.newInstance();
                    Injection injection = new Injection();
                    for (Entry<Object, Object> prop : exceptionSorterProps.entrySet()) {
                        injection.inject(exceptionSorter, (String) prop.getKey(), (String) prop.getValue());
                    }
                    return exceptionSorter.isExceptionFatal(e);
                } catch (Exception e2) {
                    log.warn("exception trying to create exception sorter (disabling):", e2);
                    exceptionSorter = new NullExceptionSorter();
View Full Code Here


                ClassLoader cl = Thread.currentThread().getContextClassLoader();
                Class<?> clazz = cl.loadClass(validConnectionCheckerClassName);
                connectionChecker = (ValidConnectionChecker) clazz.newInstance();
                Injection injection = new Injection();
                for (Entry<Object, Object> prop : validConnectionCheckerProps.entrySet()) {
                    injection.inject(connectionChecker, (String) prop.getKey(), (String) prop.getValue());
                }
                return connectionChecker.isValidConnection(c);
            } catch (Exception e) {
                log.warn("Exception trying to create connection checker (disabling):", e);
                connectionChecker = new NullValidConnectionChecker();
View Full Code Here

                ClassLoader cl = Thread.currentThread().getContextClassLoader();
                Class<?> clazz = cl.loadClass(staleConnectionCheckerClassName);
                staleConnectionChecker = (StaleConnectionChecker) clazz.newInstance();
                Injection injection = new Injection();
                for (Entry<Object, Object> prop : staleConnectionCheckerProps.entrySet()) {
                    injection.inject(staleConnectionChecker, (String) prop.getKey(), (String) prop.getValue());
                }
                return staleConnectionChecker.isStaleConnection(e);
            } catch (Exception ex2) {
                log.warn("exception trying to create stale connection checker (disabling) " +
                        staleConnectionCheckerClassName, ex2);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.