Package com.softwaremill.common.util.dependency

Examples of com.softwaremill.common.util.dependency.BeanManagerDependencyProvider


                        // try with inheritance if there's no direct match

                        serviceClass = serviceForObject(toService, interfaceClass);
                    }
                    try {
                        beanCache.put(toService, bean = new BeanManagerDependencyProvider(beanManager).inject(
                                serviceClass, serviceClass.getAnnotation(OSImpl.class)));
                    } catch (Exception e) {
                        throw new AutoOSException("Cannot resolve implementation of @OS " + interfaceClass
                                + " for object of type " + toService, e);
                    }
View Full Code Here


        }
    }

    protected void registerBeanManager() {
        if (depProvider == null) {
            depProvider = new BeanManagerDependencyProvider(bm);
            D.register(depProvider);
        }
    }
View Full Code Here

TOP

Related Classes of com.softwaremill.common.util.dependency.BeanManagerDependencyProvider

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.