Class MicroEmbeddedPiranhaBuilder
java.lang.Object
cloud.piranha.micro.shrinkwrap.builder.MicroEmbeddedPiranhaBuilder
Builder for an embedded Piranha instance based on Piranha Micro
- Author:
- Arjan Tijms
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionarchive
(org.jboss.shrinkwrap.api.Archive<?> archive) Set the application archive that will be loaded and executed by Piranha MicroBuilds an embedded Piranha Micro instance and deploys the archive set by this builder to it.configuration
(MicroConfiguration configuration) Sets the configuration for Piranha Micro
-
Constructor Details
-
MicroEmbeddedPiranhaBuilder
public MicroEmbeddedPiranhaBuilder()
-
-
Method Details
-
configuration
Sets the configuration for Piranha Micro- Parameters:
configuration
- the configuration- Returns:
- instance of this builder
-
archive
Set the application archive that will be loaded and executed by Piranha Micro- Parameters:
archive
- the archive to be executed- Returns:
- instance of this builder
-
buildAndStart
Builds an embedded Piranha Micro instance and deploys the archive set by this builder to it.- Returns:
- the newly created Piranha Micro instance
-