com.caucho.resin.candi
Class CandiStandardProducer

java.lang.Object
  extended by com.caucho.resin.candi.CandiStandardProducer

@Singleton
public class CandiStandardProducer
extends java.lang.Object

Resin CDI producer for the main singletons.


Constructor Summary
CandiStandardProducer()
           
 
Method Summary
static java.lang.Class<?> createResinValidatorProducer()
          Adds the bean validation producer to CDI.
 Bean getBean(InjectionPoint injectionPoint)
           
 TransactionSynchronizationRegistry getSyncRegistry()
          Returns the TransactionSynchronizationRegistry
 TransactionManager getTransactionManager()
          Returns the TransactionManager
 UserTransaction getUserTransaction()
          Returns the UserTransaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CandiStandardProducer

public CandiStandardProducer()
Method Detail

getTransactionManager

@Produces
public TransactionManager getTransactionManager()
Returns the TransactionManager


getUserTransaction

@Produces
public UserTransaction getUserTransaction()
Returns the UserTransaction


getSyncRegistry

@Produces
public TransactionSynchronizationRegistry getSyncRegistry()
Returns the TransactionSynchronizationRegistry


getBean

@Produces
@ContextDependent
public Bean getBean(InjectionPoint injectionPoint)

createResinValidatorProducer

public static java.lang.Class<?> createResinValidatorProducer()
Adds the bean validation producer to CDI. This uses reflection in case the validation jars don't exist.