public void build(final AppInfo appInfo, final AppContext appContext, final List<BeanContext> allDeployments, final WebContext webContext) { final ThreadSingletonService singletonService = initSingleton(); singletonService.initialize(new StartupObject(appContext, appInfo, allDeployments, webContext)); }
@Override public Class<?> getBeanClass() { return bean.getBeanClass(); }
@Override public boolean isPassivationCapable() { return bean.isPassivationCapable(); }
public NewCdiEjbBean(final CdiEjbBean<T> that) { super(that.getBeanContext(), that.getWebBeansContext(), that.getBeanContext().getManagedClass(), that.getAnnotatedType(), new NewEjbInjectionTargetFactory<T>(that.getAnnotatedType(), that.getWebBeansContext(), that.getInjectionTarget())); this.id = that.getId() + "NewBean"; initInternals(); }
public void destroyComponentInstance(final T instance) { if (getScope() == null || Dependent.class == getScope()) { destroyStatefulSessionBeanInstance(instance, null); } else { destroyScopedStateful(instance, null); } }
@Override public boolean isNewSessionBean(final Class<?> clazz) { // this may be called from a web app without ejbs in which case beans will not have been initialized by openejb. return isNewSessionBean(webBeansContext, clazz) || isNewSessionBean(superContext(webBeansContext), clazz); }
@Override public Method resolveViewMethod(final Bean<?> component, final Method declaredMethod) { final Method m = doResolveViewMethod(component, declaredMethod); if (m == null) { return declaredMethod; } return m; }
@SuppressWarnings("PMD.DoubleCheckedLocking") @Override public BeanManagerImpl getBeanManagerImpl() { if (bm == null) { // should be done in the constructor synchronized (this) { if (bm == null) { bm = new WebappBeanManager(this); } } } return bm; }
@Override public String getName() { return bean.getName(); }
@Override public Class<T> getReturnType() { return bean.getReturnType(); }
@Override public boolean isSpecializedBean() { return bean.isSpecializedBean(); }
@Override public String getId() { return bean.getId(); }
@Override public boolean isDependent() { return bean.isDependent(); }
@Override public WebBeansContext getWebBeansContext() { return bean.getWebBeansContext(); }
Object readResolve() throws ObjectStreamException { return get(); } }
public void build(final AppInfo appInfo, final AppContext appContext, final List<BeanContext> allDeployments, final WebContext webContext) { final ThreadSingletonService singletonService = initSingleton(); singletonService.initialize(new StartupObject(appContext, appInfo, allDeployments, webContext)); }
@Override public boolean isNewSessionBean(final Class<?> clazz) { // this may be called from a web app without ejbs in which case beans will not have been initialized by openejb. return isNewSessionBean(webBeansContext, clazz) || isNewSessionBean(superContext(webBeansContext), clazz); }
@Override public Method resolveViewMethod(final Bean<?> component, final Method declaredMethod) { final Method m = doResolveViewMethod(component, declaredMethod); if (m == null) { return declaredMethod; } return m; }
public void build(final AppInfo appInfo, final AppContext appContext, final List<BeanContext> allDeployments) { initSingleton().initialize(new StartupObject(appContext, appInfo, allDeployments)); }
public void build(final AppInfo appInfo, final AppContext appContext, final List<BeanContext> allDeployments) { initSingleton().initialize(new StartupObject(appContext, appInfo, allDeployments)); }