Class RestClientServletContainerInitializerBlacklist
- java.lang.Object
-
- fish.payara.microprofile.restclient.RestClientServletContainerInitializerBlacklist
-
- All Implemented Interfaces:
ServletContainerInitializerBlacklist
public class RestClientServletContainerInitializerBlacklist extends Object implements ServletContainerInitializerBlacklist
Extension point that omitsServletContainerInitializers
annotated withRegisterRestClient
. If we try and initialise these interfaces Jersey will fail them on validation (correctly) since you will end up with a duplicate mapping (the interface itself against the actual endpoint implementation). Using an extension mechanism rather than having this check directly inServletContainerInitializerUtil
allows us to avoid pulling MicroProfile APIs into the core server as a dependency.- Author:
- Andrew Pielage
-
-
Constructor Summary
Constructors Constructor Description RestClientServletContainerInitializerBlacklist()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
removeServletContainerInitializers(Map<Class<? extends jakarta.servlet.ServletContainerInitializer>,Set<Class<?>>> initializerMap)
RemovesServletContainerInitializers
from the list of initializers to be invoked.
-
-
-
Method Detail
-
removeServletContainerInitializers
public void removeServletContainerInitializers(Map<Class<? extends jakarta.servlet.ServletContainerInitializer>,Set<Class<?>>> initializerMap)
Description copied from interface:ServletContainerInitializerBlacklist
RemovesServletContainerInitializers
from the list of initializers to be invoked.- Specified by:
removeServletContainerInitializers
in interfaceServletContainerInitializerBlacklist
- Parameters:
initializerMap
- The list ofServletContainerInitializer
to remove the initializers we don't want to be run from
-
-