public void observeBeforeBeanDiscovery(@Observes BeforeBeanDiscovery bbd, BeanManager beanManager) {
        log.debugf("MPJWTExtension(), adding producers");
        String extensionName = MPJWTExtension.class.getName();
        for (Class<?> clazz : new Class<?>[] {
                JWTAuthContextInfoProvider.class,
                CommonJwtProducer.class,
                PrincipalProducer.class,
                RawClaimTypeProducer.class,
                ClaimValueProducer.class,
                JsonValueProducer.class,
        }) {
            bbd.addAnnotatedType(beanManager.createAnnotatedType(clazz), extensionName + "_" + clazz.getName());
        }
    }
public void observeBeforeBeanDiscovery ( @ Observes BeforeBeanDiscovery bbd , BeanManager beanManager ) { log . debugf ( "MPJWTExtension(), adding producers" ) ; String extensionName = MPJWTExtension . class . getName ( ) ; for ( Class < ? > clazz : new Class < ? > [ ] { JWTAuthContextInfoProvider . class , CommonJwtProducer . class , PrincipalProducer . class , RawClaimTypeProducer . class , ClaimValueProducer . class , JsonValueProducer . class , } ) { bbd . addAnnotatedType ( beanManager . createAnnotatedType ( clazz ) , extensionName + "_" + clazz . getName ( ) ) ; } }
Register the MPJWTProducer JsonWebToken producer bean

@param bbd         before discovery event
@param beanManager cdi bean manager