[weld-dev] InterceptorExtension causing unsatisfied injection point?

Lincoln Baxter, III lincolnbaxter at gmail.com
Mon May 3 15:08:51 EDT 2010


Using Weld SVN trunk:

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 ;)

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()]
    at org.jboss.weld.Validator.validateInjectionPoint(Validator.java:232)
    at org.jboss.weld.Validator.validateBean(Validator.java:80)
    at org.jboss.weld.Validator.validateRIBean(Validator.java:100)
    at org.jboss.weld.Validator.validateBeans(Validator.java:282)

public class Interceptors
{
   @Inject
   private InterceptorExtension interceptorExtension;

   private Interceptors()
   {
      // TODO Auto-generated constructor stub
   }

   public boolean isInterceptorEnabled(final Class<?> clazz)
   {
      return interceptorExtension.getEnabledInterceptors().contains(clazz);
   }

}

-- 
Lincoln Baxter, III
http://ocpsoft.com
http://scrumshark.com
"Keep it Simple"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20100503/ca20b41f/attachment-0001.html 


More information about the weld-dev mailing list