Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jboss.weld.injection.producer;
 
 
 
    private final Validator validator;
    private final Container container;
    private final BeanManagerImpl beanManager;
    private final Collection<Producer<?>> producersToValidate;
    public InjectionTargetService(BeanManagerImpl beanManager) {
        this. = new Validator();
        this. = new ConcurrentLinkedQueue<Producer<?>>();
        this. = Container.instance(beanManager);
        this. = beanManager;
    }
    public void validateProducer(Producer<?> producer) {
            // We are past the bootstrap and therefore we can validate the producer immediately
            .validateProducer(producer);
        } else {
            // Validate injection points for definition errors now
            for (InjectionPoint ip : producer.getInjectionPoints()) {
                .validateInjectionPointForDefinitionErrors(ipip.getBean(), );
                .validateEventMetadataInjectionPoint(ip);
            }
            // Schedule validation for deployment problems to be done later
            .add(producer);
        }
    }
    public <T> void addInjectionTargetToBeInitialized(EnhancedAnnotatedType<T> typeBasicInjectionTarget<T> injectionTarget) {
        addInjectionTargetToBeInitialized(new InjectionTargetInitializationContext<T>(typeinjectionTarget));
    }
    public void addInjectionTargetToBeInitialized(InjectionTargetInitializationContext<?> initializationContext) {
            // initialize now and don't store for later initialization as this has been created at runtime
            initializationContext.initialize();
        } else {
            .add(initializationContext);
        }
    }
    public void initialize() {
        for (InjectionTargetInitializationContext<?> initializationContext : ) {
            initializationContext.initialize();
        }
    }
    public void validate() {
        .clear();
    }
    @Override
    public void cleanupAfterBoot() {
        .clear();
    }
New to GrepCode? Check out our FAQ X