@Override
    public Set<String> getExtensionClasses() {

        Set<String> serviceClazzes = new HashSet<>();

        if (getType() == ArchiveType.WEB_MODULE) {
            Resource webInfClassesMetaInfServicesEntry = getResource(CDIUtils.WEB_INF_CLASSES_META_INF_SERVICES_CDI_EXTENSION);
            serviceClazzes.addAll(CDIUtils.parseServiceSPIExtensionFile(webInfClassesMetaInfServicesEntry));
        }

        Resource metaInfServicesEntry = getResource(CDIUtils.META_INF_SERVICES_CDI_EXTENSION);
        serviceClazzes.addAll(CDIUtils.parseServiceSPIExtensionFile(metaInfServicesEntry));
        return serviceClazzes;
    }
@ Override public Set < String > getExtensionClasses ( ) { Set < String > serviceClazzes = new HashSet < > ( ) ; if ( getType ( ) == ArchiveType . WEB_MODULE ) { Resource webInfClassesMetaInfServicesEntry = getResource ( CDIUtils . WEB_INF_CLASSES_META_INF_SERVICES_CDI_EXTENSION ) ; serviceClazzes . addAll ( CDIUtils . parseServiceSPIExtensionFile ( webInfClassesMetaInfServicesEntry ) ) ; } Resource metaInfServicesEntry = getResource ( CDIUtils . META_INF_SERVICES_CDI_EXTENSION ) ; serviceClazzes . addAll ( CDIUtils . parseServiceSPIExtensionFile ( metaInfServicesEntry ) ) ; return serviceClazzes ; }
Get hold of the extension class names from the file of META-INF\services\javax.enterprise.inject.spi.Extension

@return a set of classes mentioned in the extension file