Package com.softwaremill.common.cdi.autofactory

Examples of com.softwaremill.common.cdi.autofactory.CreatedWith


*/
public class AutoFactoryExtension implements Extension {
    private Set<Bean> factoryBeansToAdd = new HashSet<Bean>();

    public <X> void processAnnotatedType(@Observes ProcessAnnotatedType<X> event, BeanManager beanManager) {
        CreatedWith createdWithAnnotation = event.getAnnotatedType().getAnnotation(CreatedWith.class);
        if (createdWithAnnotation != null) {
            factoryBeansToAdd.add(new AutoFactoryFromCreatedWithCreator<X>(beanManager, createdWithAnnotation, event)
                    .create());

            // This class shouldn't be treated normally, as it contains a constructor with @Inject, where
View Full Code Here

TOP

Related Classes of com.softwaremill.common.cdi.autofactory.CreatedWith

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.