Refine search
@Override protected Bean<?> newInstance(InjectionPoint ip, CreationalContext<Bean<?>> creationalContext) { Contextual<?> contextual = getParentCreationalContext(creationalContext).getContextual(); if (contextual instanceof Bean<?>) { if (contextual instanceof Serializable) { return Reflections.cast(contextual); } else { return SerializableForwardingBean.of(getBeanManager().getContextId(), (Bean<?>) contextual); } } else { throw new IllegalArgumentException("Unable to determine Bean metadata for " + ip); } } }
public void createBeans(Environment environment) { getBeanManager().getServices().get(WeldModules.class).preBeanRegistration(this, environment); if (getBeanManager().getServices().get(EjbSupport.class) == EjbSupport.NOOP_IMPLEMENTATION) { beanDeployer.addBuiltInBean(new InjectionPointBean(beanManager)); beanDeployer.addBuiltInBean(new InstanceBean(beanManager)); beanDeployer.addBuiltInBean(new ConversationBean(beanManager)); beanDeployer.addBuiltInBean(new BeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new InterceptedBeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new DecoratedBeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new InterceptionFactoryBean(beanManager)); if (beanManager.getServices().getRequired(SecurityServices.class) != NoopSecurityServices.INSTANCE) { beanDeployer.addBuiltInBean(new PrincipalBean(beanManager));
public void createBeans(Environment environment) { getBeanManager().getServices().get(WeldModules.class).preBeanRegistration(this, environment); if (getBeanManager().getServices().get(EjbSupport.class) == EjbSupport.NOOP_IMPLEMENTATION) { beanDeployer.addBuiltInBean(new InjectionPointBean(beanManager)); beanDeployer.addBuiltInBean(new InstanceBean(beanManager)); beanDeployer.addBuiltInBean(new ConversationBean(beanManager)); beanDeployer.addBuiltInBean(new BeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new InterceptedBeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new DecoratedBeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new InterceptionFactoryBean(beanManager)); if (beanManager.getServices().getRequired(SecurityServices.class) != NoopSecurityServices.INSTANCE) { beanDeployer.addBuiltInBean(new PrincipalBean(beanManager));
@Override protected Bean<?> newInstance(InjectionPoint ip, CreationalContext<Bean<?>> creationalContext) { Contextual<?> contextual = getParentCreationalContext(creationalContext).getContextual(); if (contextual instanceof Bean<?>) { if (contextual instanceof Serializable) { return Reflections.cast(contextual); } else { return SerializableForwardingBean.of(getBeanManager().getContextId(), (Bean<?>) contextual); } } else { throw new IllegalArgumentException("Unable to determine Bean metadata for " + ip); } } }
public void createBeans(Environment environment) { getBeanManager().getServices().get(WeldModules.class).preBeanRegistration(this, environment); if (getBeanManager().getServices().get(EjbSupport.class) == EjbSupport.NOOP_IMPLEMENTATION) { beanDeployer.addBuiltInBean(new InjectionPointBean(beanManager)); beanDeployer.addBuiltInBean(new InstanceBean(beanManager)); beanDeployer.addBuiltInBean(new ConversationBean(beanManager)); beanDeployer.addBuiltInBean(new BeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new InterceptedBeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new DecoratedBeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new InterceptionFactoryBean(beanManager)); if (beanManager.getServices().getRequired(SecurityServices.class) != NoopSecurityServices.INSTANCE) { beanDeployer.addBuiltInBean(new PrincipalBean(beanManager));
@Override protected Bean<?> newInstance(InjectionPoint ip, CreationalContext<Bean<?>> creationalContext) { Contextual<?> contextual = getParentCreationalContext(creationalContext).getContextual(); if (contextual instanceof Bean<?>) { if (contextual instanceof Serializable) { return Reflections.cast(contextual); } else { return SerializableForwardingBean.of(getBeanManager().getContextId(), (Bean<?>) contextual); } } else { throw new IllegalArgumentException("Unable to determine Bean metadata for " + ip); } } }
public void createBeans(Environment environment) { getBeanManager().getServices().get(WeldModules.class).preBeanRegistration(this, environment); if (getBeanManager().getServices().get(EjbSupport.class) == EjbSupport.NOOP_IMPLEMENTATION) { beanDeployer.addBuiltInBean(new InjectionPointBean(beanManager)); beanDeployer.addBuiltInBean(new InstanceBean(beanManager)); beanDeployer.addBuiltInBean(new ConversationBean(beanManager)); beanDeployer.addBuiltInBean(new BeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new InterceptedBeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new DecoratedBeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new InterceptionFactoryBean(beanManager)); if (beanManager.getServices().getRequired(SecurityServices.class) != NoopSecurityServices.INSTANCE) { beanDeployer.addBuiltInBean(new PrincipalBean(beanManager));
@Override protected Bean<?> newInstance(InjectionPoint ip, CreationalContext<Bean<?>> creationalContext) { Contextual<?> contextual = getParentCreationalContext(creationalContext).getContextual(); if (contextual instanceof Bean<?>) { if (contextual instanceof Serializable) { return Reflections.cast(contextual); } else { return SerializableForwardingBean.of(getBeanManager().getContextId(), (Bean<?>) contextual); } } else { throw new IllegalArgumentException("Unable to determine Bean metadata for " + ip); } } }
public void createBeans(Environment environment) { getBeanManager().getServices().get(WeldModules.class).preBeanRegistration(this, environment); if (getBeanManager().getServices().get(EjbSupport.class) == EjbSupport.NOOP_IMPLEMENTATION) { beanDeployer.addBuiltInBean(new InjectionPointBean(beanManager)); beanDeployer.addBuiltInBean(new InstanceBean(beanManager)); beanDeployer.addBuiltInBean(new ConversationBean(beanManager)); beanDeployer.addBuiltInBean(new BeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new InterceptedBeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new DecoratedBeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new InterceptionFactoryBean(beanManager)); if (beanManager.getServices().getRequired(SecurityServices.class) != NoopSecurityServices.INSTANCE) { beanDeployer.addBuiltInBean(new PrincipalBean(beanManager));
@Override protected Bean<?> newInstance(InjectionPoint ip, CreationalContext<Bean<?>> creationalContext) { Contextual<?> contextual = getParentCreationalContext(creationalContext).getContextual(); if (contextual instanceof Bean<?>) { if (contextual instanceof Serializable) { return Reflections.cast(contextual); } else { return SerializableForwardingBean.of(getBeanManager().getContextId(), (Bean<?>) contextual); } } else { throw new IllegalArgumentException("Unable to determine Bean metadata for " + ip); } } }
beanDeployer.addBuiltInBean(new InstanceBean(beanManager)); beanDeployer.addBuiltInBean(new ConversationBean(beanManager)); beanDeployer.addBuiltInBean(new BeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new InterceptedBeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new DecoratedBeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new ServletContextBean(beanManager)); if (beanManager.getServices().contains(TransactionServices.class)) { beanDeployer.addBuiltInBean(new UserTransactionBean(beanManager)); if (beanManager.getServices().contains(SecurityServices.class)) { beanDeployer.addBuiltInBean(new PrincipalBean(beanManager));
@Override protected Bean<?> newInstance(InjectionPoint ip, CreationalContext<Bean<?>> creationalContext) { Contextual<?> contextual = getParentCreationalContext(creationalContext).getContextual(); if (contextual instanceof Bean<?>) { if (contextual instanceof Serializable) { return Reflections.cast(contextual); } else { return SerializableForwardingBean.of(getBeanManager().getContextId(), (Bean<?>) contextual); } } else { throw new IllegalArgumentException("Unable to determine Bean metadata for " + ip); } } }