Skip to content

Commit

Permalink
Add AngusActivationProcessor
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Jan 10, 2025
1 parent a25ac8a commit 1c72502
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package io.quarkiverse.angus.mail.deployment;

import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.nativeimage.ServiceProviderBuildItem;

class AngusActivationProcessor {

@BuildStep
ServiceProviderBuildItem mailcapRegistryProviders() {
return ServiceProviderBuildItem.allProvidersFromClassPath("jakarta.activation.spi.MailcapRegistryProvider");
}

@BuildStep
ServiceProviderBuildItem mimeTypeRegistryProviders() {
return ServiceProviderBuildItem.allProvidersFromClassPath("jakarta.activation.spi.MimeTypeRegistryProvider");
}
}

0 comments on commit 1c72502

Please sign in to comment.