Author: marius.bogoevici
Date: 2009-10-20 18:15:34 -0400 (Tue, 20 Oct 2009)
New Revision: 4208
Modified:
core/trunk/impl/src/main/java/org/jboss/weld/bean/NewSessionBean.java
core/trunk/impl/src/main/java/org/jboss/weld/bean/SessionBean.java
Log:
Do not register the InternalEjbDescriptor and do not register interceptors twice.
Modified: core/trunk/impl/src/main/java/org/jboss/weld/bean/NewSessionBean.java
===================================================================
--- core/trunk/impl/src/main/java/org/jboss/weld/bean/NewSessionBean.java 2009-10-20
21:02:02 UTC (rev 4207)
+++ core/trunk/impl/src/main/java/org/jboss/weld/bean/NewSessionBean.java 2009-10-20
22:15:34 UTC (rev 4208)
@@ -124,4 +124,9 @@
// No-op
}
+ @Override
+ protected void registerInterceptors()
+ {
+ // No - op
+ }
}
Modified: core/trunk/impl/src/main/java/org/jboss/weld/bean/SessionBean.java
===================================================================
--- core/trunk/impl/src/main/java/org/jboss/weld/bean/SessionBean.java 2009-10-20 21:02:02
UTC (rev 4207)
+++ core/trunk/impl/src/main/java/org/jboss/weld/bean/SessionBean.java 2009-10-20 22:15:34
UTC (rev 4208)
@@ -436,11 +436,11 @@
return true;
}
- private void registerInterceptors()
+ protected void registerInterceptors()
{
InterceptionModel<Class<?>,
SerializableContextual<javax.enterprise.inject.spi.Interceptor<?>, ?>>
model =
manager.getCdiInterceptorsRegistry().getInterceptionModel(ejbDescriptor.getBeanClass());
if (model != null)
-
getManager().getServices().get(EjbServices.class).registerInterceptors(getEjbDescriptor(),
new InterceptorBindingsAdapter(model));
+
getManager().getServices().get(EjbServices.class).registerInterceptors(getEjbDescriptor().delegate(),
new InterceptorBindingsAdapter(model));
}
}
Show replies by date