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"