[jboss-cvs] JBossAS SVN: r94418 - in projects/webbeans-ri-int/trunk: ejb/src/main/java/org/jboss/webbeans/integration/ejb and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Oct 6 11:28:32 EDT 2009
Author: marius.bogoevici
Date: 2009-10-06 11:28:32 -0400 (Tue, 06 Oct 2009)
New Revision: 94418
Modified:
projects/webbeans-ri-int/trunk/deployer/src/test/java/org/jboss/test/deployers/support/MockEjbServices.java
projects/webbeans-ri-int/trunk/ejb/src/main/java/org/jboss/webbeans/integration/ejb/JBossEjbServices.java
Log:
Adding API for @InterceptorBinding-bound interceptor registration in EjbServices.
Modified: projects/webbeans-ri-int/trunk/deployer/src/test/java/org/jboss/test/deployers/support/MockEjbServices.java
===================================================================
--- projects/webbeans-ri-int/trunk/deployer/src/test/java/org/jboss/test/deployers/support/MockEjbServices.java 2009-10-06 15:27:30 UTC (rev 94417)
+++ projects/webbeans-ri-int/trunk/deployer/src/test/java/org/jboss/test/deployers/support/MockEjbServices.java 2009-10-06 15:28:32 UTC (rev 94418)
@@ -29,6 +29,7 @@
import org.jboss.webbeans.ejb.api.SessionObjectReference;
import org.jboss.webbeans.ejb.spi.EjbDescriptor;
import org.jboss.webbeans.ejb.spi.EjbServices;
+import org.jboss.webbeans.ejb.spi.InterceptorBindings;
/**
* @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
@@ -63,6 +64,11 @@
return null;
}
+ public void registerInterceptors(EjbDescriptor<?> ejbDescriptor, InterceptorBindings interceptorBindings)
+ {
+ // do nothing
+ }
+
public Iterable<EjbDescriptor<?>> getEjbs()
{
return Collections.emptySet();
Modified: projects/webbeans-ri-int/trunk/ejb/src/main/java/org/jboss/webbeans/integration/ejb/JBossEjbServices.java
===================================================================
--- projects/webbeans-ri-int/trunk/ejb/src/main/java/org/jboss/webbeans/integration/ejb/JBossEjbServices.java 2009-10-06 15:27:30 UTC (rev 94417)
+++ projects/webbeans-ri-int/trunk/ejb/src/main/java/org/jboss/webbeans/integration/ejb/JBossEjbServices.java 2009-10-06 15:28:32 UTC (rev 94418)
@@ -21,6 +21,7 @@
import org.jboss.webbeans.ejb.api.SessionObjectReference;
import org.jboss.webbeans.ejb.spi.EjbDescriptor;
import org.jboss.webbeans.ejb.spi.EjbServices;
+import org.jboss.webbeans.ejb.spi.InterceptorBindings;
import org.jboss.webbeans.injection.spi.EjbInjectionServices;
import org.jboss.webbeans.integration.util.AbstractJBossServices;
import org.jboss.webbeans.integration.vdf.DeploymentUnitAware;
@@ -30,6 +31,7 @@
*
* @author Pete Muir
* @author ales.justin at jboss.org
+ * @author Marius Bogoevici
*/
public class JBossEjbServices extends AbstractJBossServices implements EjbServices, EjbInjectionServices, DeploymentUnitAware
{
@@ -110,7 +112,13 @@
throw new RuntimeException("Error retreiving EJB from JNDI " + ejbDescriptor, e);
}
}
-
+
+ public void registerInterceptors(EjbDescriptor<?> ejbDescriptor, InterceptorBindings interceptorBindings)
+ {
+ // TODO register interceptors for given EJB descriptor
+ throw new UnsupportedOperationException("Not implemented");
+ }
+
public Object resolveRemoteEjb(String jndiName, String mappedName, String ejbLink)
{
if (mappedName != null)
More information about the jboss-cvs-commits
mailing list