Profile Photo
I hope I'm not overlooking something.   Suppose I am validating injection points in enabled beans in a portable extension.   Suppose one injection point is in a bean that I somehow "know" is disabled or will be disabled in favor of a selected alternative.   I would like to detect this case so that I do not waste time and effort validating an… (Show more)
in Weld
Profile Photo
Chasing down a problem where it looks like an InjectionTarget I’m installing in a portable extension does not get its dispose() method called when the injection target in question is a managed bean. The spec says that for managed beans their related Producer does nothing for disposal—which makes sense—but I’d still expect to see the no-op… (Show more)
in Weld
Profile Photo
I naïvely assumed that once I got ahold of an ObserverMethod I could find out what injection points it has.   I know that I can get the AnnotatedMethod, go through the AnnotatedParameters and weed out the one that is the event parameter.  But that seems quite clumsy.  I was assuming that much like a Producer an ObserverMethod would have a set of… (Show more)
in Weld
Profile Photo
If I make a ClassFileServices implementation and a corresponding META-INF/services/org.jboss.weld.bootstrap.api.Service file with the appropriate line in it, I expect my ClassFileServices implementation to be used.  It is not.  Reading the code shows me that the DiscoveryStrategyFactory knows only of the built-in Jandex- and reflection-based… (Show more)
in Weld
Profile Photo
Suppose I have a situation like this:   @ApplicationScoped public class Foo {   private static void onStartup(@Observes @Initialized(ApplicationScoped.class) final Object event) {      this.frobnicate();   }      @Transactional   private void frobnicate() {      } }   …where @Transactional is an interceptor binding.   Should the… (Show more)
in Weld
Profile Photo
I wonder: should there be a CDI-specific wrapper around Narayana's TransactionManagerImple that fires an @Initialized(TransactionScoped.class)-qualified event?   The specification says (in section 6.7):   Portable extensions are encouraged to synchronously fire: an event with qualifier @Initialized(X.class) when a custom context is initialized,… (Show more)
in Narayana
Profile Photo
I'm doing some evil things inside a JpaInjectionServices implementation.  I'd like to get the currently configured ExecutorServices.  The only way I can think of to do it is to do something faintly stupid like ((WeldManager)(CDI.current().getBeanManager())).getServices().get(ExecutorServices.class).  Is there a better way?
in Weld
Load more items