Module cloud.piranha.core.api
Package cloud.piranha.core.api
Interface WebApplicationExtensionContext
- All Known Implementing Classes:
DefaultWebApplicationExtensionContext
public interface WebApplicationExtensionContext
The web application extension context API.
- Author:
- Manfred Riem ([email protected])
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(WebApplicationExtension extension) Add the extension to the web application.void
add
(Class<? extends WebApplicationExtension> extension) Add the extension to the web application.void
remove
(Class<? extends WebApplicationExtension> extension) Remove the extension from the web application.
-
Method Details
-
add
Add the extension to the web application.This will add this extension to the list of extensions that will be used when configuring the web application.
- Parameters:
extension
- the extension.
-
add
Add the extension to the web application.This will add this extension to the list of extensions that will be used when configuring the web application.
- Parameters:
extension
- the extension.
-
remove
Remove the extension from the web application.This will remove the extension from the list of extensions that will be used when configuring the web application.
NOTE this will ONLY remove this extension. Any extensions that were added to the list by this extension BEFORE it was removed will NOT be removed from the list of extensions. This is by design.
- Parameters:
extension
- the extension.
-