Package br.com.caelum.vraptor.ioc.cdi.extensions

Source Code of br.com.caelum.vraptor.ioc.cdi.extensions.RegisterComponentsExtension

package br.com.caelum.vraptor.ioc.cdi.extensions;

import javax.enterprise.event.Observes;
import javax.enterprise.inject.spi.BeanManager;
import javax.enterprise.inject.spi.BeforeBeanDiscovery;
import javax.enterprise.inject.spi.Extension;

import br.com.caelum.vraptor.ioc.cdi.CDIRegistry;

public class RegisterComponentsExtension implements Extension {

  public void beforeBeanDiscovey(@Observes BeforeBeanDiscovery discovery,
      BeanManager bm) {
    CDIRegistry registry = new CDIRegistry(discovery, bm);
    registry.configure();
  }
}
TOP

Related Classes of br.com.caelum.vraptor.ioc.cdi.extensions.RegisterComponentsExtension

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.