Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * JBoss, Home of Professional Open Source
  * Copyright 2013, Red Hat, Inc., and individual contributors
  * by the @authors tag. See the copyright.txt in the distribution for a
  * full listing of individual contributors.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.jboss.weld.bootstrap.events;
    public static void fire(BeanManagerImpl beanManagerDeployment deploymentBeanDeploymentArchiveMapping bdaMappingCollection<ContextHolder<? extends Context>> contexts) {
        new AfterTypeDiscoveryImpl(beanManagerbdaMappingdeploymentcontexts).fire();
    }
    private final GlobalEnablementBuilder builder;
    private final ContainerLifecycleEvents events;
    private final ClassTransformer transformer;
    private final SlimAnnotatedTypeStore store;
    protected AfterTypeDiscoveryImpl(BeanManagerImpl beanManagerBeanDeploymentArchiveMapping bdaMappingDeployment deploymentCollection<ContextHolder<? extends Context>> contexts) {
        super(beanManagerAfterTypeDiscovery.classbdaMappingdeploymentcontexts);
        this. = beanManager.getServices().get(GlobalEnablementBuilder.class);
        this. = beanManager.getServices().get(ContainerLifecycleEvents.class);
        this. = beanManager.getServices().get(ClassTransformer.class);
        this. = beanManager.getServices().get(SlimAnnotatedTypeStore.class);
    }
    @Override
    public List<Class<?>> getAlternatives() {
        return .getAlternativeList();
    }
    @Override
    public List<Class<?>> getInterceptors() {
        return .getInterceptorList();
    }
    @Override
    public List<Class<?>> getDecorators() {
        return .getDecoratorList();
    }
    @Override
    public void addAnnotatedType(AnnotatedType<?> typeString id) {
        addSyntheticAnnotatedType(typeid);
    }
    @Override
    protected void storeSyntheticAnnotatedType(BeanDeployment deploymentAnnotatedType<?> typeString id) {
        SlimAnnotatedType<?> annotatedType = .getUnbackedAnnotatedType(typegetBeanManager().getId(), id);
        Extension extension = getReceiver();
        SlimAnnotatedTypeContext<?> annotatedTypeContext = SlimAnnotatedTypeContext.of(annotatedTypeextension);
        ProcessAnnotatedTypeImpl<?> event = .fireProcessAnnotatedType(getBeanManager(), annotatedTypeContext);
        if (event == null) {
            deployment.getBeanDeployer().getEnvironment().addAnnotatedType(annotatedTypeContext);
            .put(annotatedType);
        } else  if (event.isVeto()) {
            return;
        } else {
            annotatedType = event.getResultingAnnotatedType();
            deployment.getBeanDeployer().getEnvironment().addSyntheticAnnotatedType(annotatedTypeextension);
            .put(annotatedType);
        }
    }
New to GrepCode? Check out our FAQ X