Author: scabanovich
Date: 2010-06-11 06:53:05 -0400 (Fri, 11 Jun 2010)
New Revision: 22765
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IBeanManager.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/CDIProject.java
Log:
https://jira.jboss.org/browse/JBIDE-6414
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IBeanManager.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IBeanManager.java 2010-06-11
10:27:21 UTC (rev 22764)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IBeanManager.java 2010-06-11
10:53:05 UTC (rev 22765)
@@ -191,6 +191,7 @@
*/
IStereotype getStereotype(IPath path);
+ IInterceptorBinding[] getInterceptorBindings();
/**
* Returns interceptor binding model element for fully qualified name of
* interceptor binding annotation type
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/CDIProject.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/CDIProject.java 2010-06-11
10:27:21 UTC (rev 22764)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/CDIProject.java 2010-06-11
10:53:05 UTC (rev 22765)
@@ -39,6 +39,7 @@
import org.jboss.tools.cdi.core.ICDIProject;
import org.jboss.tools.cdi.core.IClassBean;
import org.jboss.tools.cdi.core.IInjectionPoint;
+import org.jboss.tools.cdi.core.IInterceptorBinding;
import org.jboss.tools.cdi.core.IObserverMethod;
import org.jboss.tools.cdi.core.IParametedType;
import org.jboss.tools.cdi.core.IParameter;
@@ -695,6 +696,18 @@
return stereotypesByPath.get(path);
}
+ public IInterceptorBinding[] getInterceptorBindings() {
+ IInterceptorBinding[] result = new IInterceptorBinding[interceptorBindings.size()];
+ synchronized (interceptorBindings) {
+ int i=0;
+ for (IInterceptorBinding s: interceptorBindings.values()) {
+ result[i++] = s;
+ }
+ }
+ return result;
+
+ }
+
public InterceptorBindingElement getInterceptorBinding(String qualifiedName) {
return interceptorBindings.get(qualifiedName);
}