Using Weld SVN trunk:<br><br>For some reason this class is causing deployment failures for me, complaining that "InterceptorExtension" cannot be satisfied as an injection point. Removing @Inject definitely clears up the issue... but... I'm guessing that's not the desired fix ;)<br>
<br>Caused by: org.jboss.weld.DeploymentException: Injection point has unstatisfied dependencies. Injection point: field org.jboss.weld.extensions.interceptor.Interceptors.interceptorExtension; Qualifiers: [@javax.enterprise.inject.Default()]<br>
at org.jboss.weld.Validator.validateInjectionPoint(Validator.java:232)<br> at org.jboss.weld.Validator.validateBean(Validator.java:80)<br> at org.jboss.weld.Validator.validateRIBean(Validator.java:100)<br> at org.jboss.weld.Validator.validateBeans(Validator.java:282)<br>
<br>public class Interceptors<br>{<br> @Inject<br> private InterceptorExtension interceptorExtension;<br><br> private Interceptors()<br> {<br> // TODO Auto-generated constructor stub<br> }<br><br> public boolean isInterceptorEnabled(final Class<?> clazz)<br>
{<br> return interceptorExtension.getEnabledInterceptors().contains(clazz);<br> }<br><br>}<br clear="all"><br>-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.com">http://ocpsoft.com</a><br><a href="http://scrumshark.com">http://scrumshark.com</a><br>
"Keep it Simple"<br>