@SuppressWarnings({ "rawtypes", "unchecked" })
    @Override
    public void injectFields(Object target) {
        BeanManager mgr = BeanManagerLookup.getBeanManager();
        AnnotatedType annotatedType = mgr.createAnnotatedType(target.getClass());
        InjectionTarget injectionTarget = mgr.createInjectionTarget(annotatedType);
        CreationalContext context = mgr.createCreationalContext(null);
        injectionTarget.inject(target, context);
    }
@ SuppressWarnings ( { "rawtypes" , "unchecked" } ) @ Override public void injectFields ( Object target ) { BeanManager mgr = BeanManagerLookup . getBeanManager ( ) ; AnnotatedType annotatedType = mgr . createAnnotatedType ( target . getClass ( ) ) ; InjectionTarget injectionTarget = mgr . createInjectionTarget ( annotatedType ) ; CreationalContext context = mgr . createCreationalContext ( null ) ; injectionTarget . inject ( target , context ) ; }
Injects dependencies into the given target object whose lifecycle is not managed by the
BeanManager itself.

@param target
an object with injection points