448449450451452453454455456457458
BeanFactory factory = beanManager.createBeanFactory(_object.getClass()); if (name != null) { factory.name(name); factory.binding(CurrentLiteral.CURRENT); factory.binding(Names.create(name)); } // server/12dt // for backward compatibility <resource> is always ApplicationScoped
449450451452453454455456457458459
BeanFactory factory = beanManager.createBeanFactory(_object.getClass()); if (name != null) { factory.name(name); factory.binding(CurrentLiteral.CURRENT); factory.binding(Names.create(name)); } // server/12dt // for backward compatibility <resource> is always ApplicationScoped factory.scope(ApplicationScoped.class);
192193194195196197198199200201202
if (getName() != null) { Jndi.bindDeepShort(getName(), connectionFactory); factory.name(getName()); factory.binding(Names.create(getName())); // server/30i0 factory.binding(CurrentLiteral.CURRENT); } Bean bean = factory.singleton(connectionFactory);
194195196197198199200201202203204
Jndi.bindDeepShort(getName(), connectionFactory); factory.name(getName()); factory.binding(Names.create(getName())); // server/30i0 factory.binding(CurrentLiteral.CURRENT); } Bean bean = factory.singleton(connectionFactory); manager.addBean(bean);
90919293949596979899100
addOptionalStringProperty("name", getName()); } for (Annotation binding : getBindingList()) { factory = factory.binding(binding); } for (Annotation stereotype : getStereotypeList()) { factory = factory.stereotype(stereotype.annotationType()); }
165166167168169170171172173174175
*/ for (Annotation binding : annotated.getAnnotations()) { Class bindingType = binding.annotationType(); if (bindingType.isAnnotationPresent(Qualifier.class)) factory.binding(binding); } _beanManager.addBean(factory.singleton(proxy)); event.veto();
700701702703704705706707708709710
if (getName() != null) { Jndi.bindDeepShort(getName(), connectionFactory); factory.name(getName()); // server/30b4 factory.binding(Names.create(getName())); factory.binding(CurrentLiteral.CURRENT); } manager.addBean(factory.singleton(connectionFactory)); }
701702703704705706707708709710711
Jndi.bindDeepShort(getName(), connectionFactory); factory.name(getName()); // server/30b4 factory.binding(Names.create(getName())); factory.binding(CurrentLiteral.CURRENT); } manager.addBean(factory.singleton(connectionFactory)); } }
518519520521522523524525526527528
public Class annotationType() { return Startup.class; } }); } for (Annotation binding : _bindingList) { factory.binding(binding); } for (Annotation stereotype : _stereotypeList) { factory.stereotype(stereotype.annotationType()); }
164165166167168169170171172173174
InjectManager webBeans = InjectManager.create(); BeanFactory factory = webBeans.createBeanFactory(value.getClass()); factory.name(_name); // server/1516 factory.binding(Names.create(_name)); webBeans.addBean(factory.singleton(value)); Jndi.bindDeepShort(_name, value); }