- java.lang.Object
-
- com.appslandia.common.base.InitializeObject
-
- com.appslandia.common.cdi.CDIExtension
-
- All Implemented Interfaces:
InitializeSupport,jakarta.enterprise.inject.spi.Extension
public class CDIExtension extends InitializeObject implements jakarta.enterprise.inject.spi.Extension
- Author:
- Loc Ha
-
-
Constructor Summary
Constructors Constructor Description CDIExtension()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CDIExtensionexcludeAnnotations(Class<?>... annotationClasses)protected CDIExtensionexcludeClasses(Class<?>... beanClasses)protected CDIExtensionexcludePackages(Class<?>... beanClasses)protected CDIExtensionexcludePackages(String... packages)static EnableEnvgetEnableEnv(Class<?> beanClass)protected voidinit()protected voidonExcludeClass(Class<?> beanClass)protected voidonRegisterClass(Class<?> beanClass)<T> voidprocessAnnotatedType(jakarta.enterprise.inject.spi.ProcessAnnotatedType<T> event)static booleanwillExcludeAnnotations(Set<Class<? extends Annotation>> excludedAnnotations, Class<?> beanClass)protected booleanwillExcludeClass(Class<?> beanClass)static booleanwillExcludeClasses(Set<Class<?>> excludedClasses, Class<?> beanClass)static booleanwillExcludePackages(Set<String> excludedPackages, Class<?> beanClass)-
Methods inherited from class com.appslandia.common.base.InitializeObject
assertNotInitialized, destroy, initialize
-
-
-
-
Method Detail
-
init
protected void init() throws Exception- Specified by:
initin classInitializeObject- Throws:
Exception
-
excludeClasses
protected CDIExtension excludeClasses(Class<?>... beanClasses)
-
excludePackages
protected CDIExtension excludePackages(String... packages)
-
excludePackages
protected CDIExtension excludePackages(Class<?>... beanClasses)
-
excludeAnnotations
protected CDIExtension excludeAnnotations(Class<?>... annotationClasses)
-
willExcludeClass
protected boolean willExcludeClass(Class<?> beanClass)
-
onExcludeClass
protected void onExcludeClass(Class<?> beanClass)
-
onRegisterClass
protected void onRegisterClass(Class<?> beanClass)
-
processAnnotatedType
public <T> void processAnnotatedType(@Observes jakarta.enterprise.inject.spi.ProcessAnnotatedType<T> event)
-
willExcludeClasses
public static boolean willExcludeClasses(Set<Class<?>> excludedClasses, Class<?> beanClass)
-
willExcludePackages
public static boolean willExcludePackages(Set<String> excludedPackages, Class<?> beanClass)
-
willExcludeAnnotations
public static boolean willExcludeAnnotations(Set<Class<? extends Annotation>> excludedAnnotations, Class<?> beanClass)
-
-