I would also create a org.jboss.weld.environment.deployment.discovery.jandex.Jandex util class which would be able to detect Jandex on the class path (see also DiscoveryStrategyFactory.create(ResourceLoader, Bootstrap, Set<Class<? extends Annotation>>)) and instantiate JandexDiscoveryStrategy. This util class could also contain JandexDiscoveryStrategy.INDEX_ATTRIBUTE_NAME.
|