Package org.glassfish.cdi.transaction
Class TransactionScopedCDIUtil
- java.lang.Object
-
- org.glassfish.cdi.transaction.TransactionScopedCDIUtil
-
public class TransactionScopedCDIUtil extends Object
This class contains utility methods used for TransactionScoped related CDI event processing. TODO: Merge these and other CDU util classes- Author:
- Arjav Desai
-
-
Field Summary
Fields Modifier and Type Field Description static String
CDI_JTA_LOGGER_SUBSYSTEM_NAME
static String
DESTORYED_EVENT
static String
INITIALIZED_EVENT
static String
SHARED_LOGMESSAGE_RESOURCE
-
Constructor Summary
Constructors Constructor Description TransactionScopedCDIUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static jakarta.enterprise.inject.spi.Bean<?>
createHelperBean(jakarta.enterprise.inject.spi.BeanManager beanManager, Class<? extends Object> beanClass)
static void
fireEvent(String eventType)
static <A extends Annotation>
Optional<A>getAnnotation(jakarta.enterprise.inject.spi.BeanManager beanManager, Class<?> annotatedClass, Class<A> annotationType)
static <A extends Annotation>
Optional<A>getAnnotation(jakarta.enterprise.inject.spi.BeanManager beanManager, Method annotatedMethod, Class<A> annotationType)
static void
log(String message)
-
-
-
Field Detail
-
INITIALIZED_EVENT
public static final String INITIALIZED_EVENT
- See Also:
- Constant Field Values
-
DESTORYED_EVENT
public static final String DESTORYED_EVENT
- See Also:
- Constant Field Values
-
SHARED_LOGMESSAGE_RESOURCE
public static final String SHARED_LOGMESSAGE_RESOURCE
- See Also:
- Constant Field Values
-
CDI_JTA_LOGGER_SUBSYSTEM_NAME
public static final String CDI_JTA_LOGGER_SUBSYSTEM_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
log
public static void log(String message)
-
getAnnotation
public static <A extends Annotation> Optional<A> getAnnotation(jakarta.enterprise.inject.spi.BeanManager beanManager, Class<?> annotatedClass, Class<A> annotationType)
-
getAnnotation
public static <A extends Annotation> Optional<A> getAnnotation(jakarta.enterprise.inject.spi.BeanManager beanManager, Method annotatedMethod, Class<A> annotationType)
-
createHelperBean
public static jakarta.enterprise.inject.spi.Bean<?> createHelperBean(jakarta.enterprise.inject.spi.BeanManager beanManager, Class<? extends Object> beanClass)
-
fireEvent
public static void fireEvent(String eventType)
-
-