protected Object instantiateSessionBean() throws Exception, NamingException { Component old = SeamInterceptor.COMPONENT.get(); SeamInterceptor.COMPONENT.set(this); try { Object bean = Naming.getInitialContext().lookup(jndiName); return wrap(bean, new ClientSideInterceptor(bean, this)); } finally { SeamInterceptor.COMPONENT.set(old); } }
protected Object instantiateJavaBean() throws Exception { Object bean = getBeanClass().newInstance(); if (interceptionEnabled) { JavaBeanInterceptor interceptor = new JavaBeanInterceptor(bean, this); bean = wrap(bean, interceptor); } return bean; }
return comp.wrap(bean, this);
return comp.wrap(bean, this);