This bean stores information about @ {@link org.apache.myfaces.extensions.cdi.jpa.api.TransactionScoped}contextual instances, their {@link javax.enterprise.context.spi.CreationalContext} etc.
We use a RequestScoped bean because this way we don't need to take care about cleaning up any ThreadLocals ourselves. This also makes sure that we subsequently destroy any left over TransactionScoped beans (which should not happen, but who knows). We also don't need to do any fancy synchronization stuff since we are sure that we are always in the same Thread.
|
|