Class Jandex
- java.lang.Object
-
- org.jboss.weld.environment.deployment.discovery.jandex.Jandex
-
public class Jandex extends Object
- Author:
- Tomas Remes
-
-
Field Summary
Fields Modifier and Type Field Description static StringDISABLE_JANDEX_DISCOVERY_STRATEGYBy default, when there is Jandex on classpath, it will be used for bean discovery.static StringINDEX_ATTRIBUTE_NAMEstatic StringJANDEX_DISCOVERY_STRATEGY_CLASS_NAME
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JandexDiscoveryStrategycreateJandexDiscoveryStrategy(org.jboss.weld.resources.spi.ResourceLoader resourceLoader, org.jboss.weld.bootstrap.api.Bootstrap bootstrap, Set<Class<? extends Annotation>> initialBeanDefiningAnnotations)static booleanisJandexAvailable(org.jboss.weld.resources.spi.ResourceLoader resourceLoader)
-
-
-
Field Detail
-
INDEX_ATTRIBUTE_NAME
public static final String INDEX_ATTRIBUTE_NAME
-
JANDEX_DISCOVERY_STRATEGY_CLASS_NAME
public static final String JANDEX_DISCOVERY_STRATEGY_CLASS_NAME
- See Also:
- Constant Field Values
-
DISABLE_JANDEX_DISCOVERY_STRATEGY
public static final String DISABLE_JANDEX_DISCOVERY_STRATEGY
By default, when there is Jandex on classpath, it will be used for bean discovery. However, in some rare cases, other dependencies might bring in unwanted Jandex dependency which will cause problems. Setting this option to true will force a non-Jandex discovery strategy.- See Also:
- Constant Field Values
-
-
Method Detail
-
isJandexAvailable
public static boolean isJandexAvailable(org.jboss.weld.resources.spi.ResourceLoader resourceLoader)
-
createJandexDiscoveryStrategy
public static JandexDiscoveryStrategy createJandexDiscoveryStrategy(org.jboss.weld.resources.spi.ResourceLoader resourceLoader, org.jboss.weld.bootstrap.api.Bootstrap bootstrap, Set<Class<? extends Annotation>> initialBeanDefiningAnnotations) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException
-
-