com.caucho.server.webbeans
Class ResinCdiProducer

java.lang.Object
  extended by com.caucho.server.webbeans.ResinCdiProducer

@Singleton
public class ResinCdiProducer
extends java.lang.Object

Resin CDI producer for the main singletons.


Constructor Summary
ResinCdiProducer()
           
 
Method Summary
 CacheManager createCacheManager()
           
static java.lang.Class<?> createResinValidatorProducer()
          Adds the bean validation producer to CDI.
 void destroy(ConversationContext conversation)
           
 ConversationContext getConversation()
          Returns the web beans conversation controller
 javax.management.MBeanServer getMBeanServer()
          Returns the MBeanServer
 java.security.Principal getPrincipal()
          Returns the ScheduledExecutorService
 java.util.concurrent.ScheduledExecutorService getScheduledExecutorService()
          Returns the ScheduledExecutorService
 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

ResinCdiProducer

public ResinCdiProducer()
Method Detail

getConversation

@Produces
@Named(value="javax.enterprise.context.conversation")
@RequestScoped
public ConversationContext getConversation()
Returns the web beans conversation controller


destroy

public void destroy(@Disposes@Named(value="javax.enterprise.context.conversation")
                    ConversationContext conversation)

getMBeanServer

@Produces
public javax.management.MBeanServer getMBeanServer()
Returns the MBeanServer


getTransactionManager

@Produces
public TransactionManager getTransactionManager()
Returns the TransactionManager


getUserTransaction

@Produces
public UserTransaction getUserTransaction()
Returns the UserTransaction


getSyncRegistry

@Produces
public TransactionSynchronizationRegistry getSyncRegistry()
Returns the TransactionSynchronizationRegistry


getScheduledExecutorService

@Produces
@ContextDependent
public java.util.concurrent.ScheduledExecutorService getScheduledExecutorService()
Returns the ScheduledExecutorService


getPrincipal

@Produces
@ContextDependent
public java.security.Principal getPrincipal()
Returns the ScheduledExecutorService


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.


createCacheManager

@Singleton
@Produces
public CacheManager createCacheManager()