Package org.wildfly.subsystem.service
Interface ServiceInstaller
- All Superinterfaces:
DeploymentServiceInstaller,Installer<org.jboss.as.controller.RequirementServiceTarget>,ResourceServiceInstaller
- All Known Implementing Classes:
ServiceInstaller.DefaultServiceInstaller
public interface ServiceInstaller
extends ResourceServiceInstaller, DeploymentServiceInstaller, Installer<org.jboss.as.controller.RequirementServiceTarget>
A
ResourceServiceInstaller that encapsulates service installation into a RequirementServiceTarget.- Author:
- Paul Ferraro
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilds aServiceInstaller.static classstatic classstatic classstatic interfaceBuilds aServiceInstallerwhose installed service provides a single value.Nested classes/interfaces inherited from interface org.wildfly.service.Installer
Installer.AbstractBuilder<B,I extends Installer<ST>, ST extends ServiceTarget, SB extends DSB, DSB extends ServiceBuilder<?>>, Installer.AbstractNullaryBuilder<B, I extends Installer<ST>, ST extends ServiceTarget, SB extends DSB, DSB extends ServiceBuilder<?>>, Installer.AbstractUnaryBuilder<B, I extends Installer<ST>, ST extends ServiceTarget, SB extends DSB, DSB extends ServiceBuilder<?>, T, V>, Installer.BlockingBuilder<B>, Installer.Configuration<SB extends DSB, DSB extends ServiceBuilder<?>>, Installer.DefaultInstaller<ST extends ServiceTarget, SB extends DSB, DSB extends ServiceBuilder<?>>, Installer.UnaryService<T, V> -
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceInstaller.BuilderReturns aServiceInstallerbuilder that executes the specified tasks onService.start(StartContext)andService.stop(StopContext), respectively.static <T,V> ServiceInstaller.UnaryBuilder<T, V> Returns aServiceInstallerbuilder whose installed service provides the value supplied by the specified factory and mapping function.static <V> ServiceInstaller.UnaryBuilder<V,V> Returns aServiceInstallerbuilder whose installed service provides the value supplied by the specified factory.static ServiceInstaller.Builderbuilder(ServiceInstaller installer) Returns aServiceInstallerbuilder that installs the specified installer into a child target.static <V> ServiceInstaller.UnaryBuilder<V,V> builder(ServiceDependency<V> dependency) Returns aServiceInstallerbuilder whose installed service provides the value supplied by the specified dependency.static ServiceInstaller.Builderbuilder(ServiceInstaller installer, org.jboss.as.controller.capability.CapabilityServiceSupport support) Returns aServiceInstallerbuilder that installs the specified installer into a child target.static <V> ServiceInstaller.UnaryBuilder<V,V> builder(V value) Returns aServiceInstallerbuilder whose installed service provides the specified value.default Consumer<org.jboss.as.controller.OperationContext>install(org.jboss.as.controller.OperationContext context) Installs a service into the target associated with the specified operation context.default voidinstall(org.jboss.as.server.deployment.DeploymentPhaseContext context) Installs a service into the target associated with the deployment phase of the specified context.
-
Method Details
-
builder
Returns aServiceInstallerbuilder whose installed service provides the specified value.- Type Parameters:
V- the service value type- Parameters:
value- the service value- Returns:
- a service installer builder
-
builder
Returns aServiceInstallerbuilder whose installed service provides the value supplied by the specified dependency.- Type Parameters:
V- the service value type- Parameters:
dependency- a service dependency- Returns:
- a service installer builder
-
builder
Returns aServiceInstallerbuilder whose installed service provides the value supplied by the specified factory.- Type Parameters:
V- the service value type- Parameters:
factory- provides the service value- Returns:
- a service installer builder
-
builder
Returns aServiceInstallerbuilder whose installed service provides the value supplied by the specified factory and mapping function.- Type Parameters:
T- the source value typeV- the service value type- Parameters:
mapper- a function that returns the service value given the value supplied by the factoryfactory- provides the input to the specified mapper- Returns:
- a service installer builder
-
builder
Returns aServiceInstallerbuilder that installs the specified installer into a child target.- Parameters:
installer- a service installer- Returns:
- a service installer builder
-
builder
static ServiceInstaller.Builder builder(ServiceInstaller installer, org.jboss.as.controller.capability.CapabilityServiceSupport support) Returns aServiceInstallerbuilder that installs the specified installer into a child target.- Parameters:
installer- a service installersupport- support for capabilities- Returns:
- a service installer builder
-
builder
Returns aServiceInstallerbuilder that executes the specified tasks onService.start(StartContext)andService.stop(StopContext), respectively.- Parameters:
startTask- a start taskstopTask- a stop task- Returns:
- a service installer builder
-
install
default Consumer<org.jboss.as.controller.OperationContext> install(org.jboss.as.controller.OperationContext context) Description copied from interface:ResourceServiceInstallerInstalls a service into the target associated with the specified operation context.- Specified by:
installin interfaceResourceServiceInstaller- Parameters:
context- an operation context- Returns:
- a mechanism to remove the installed service
-
install
default void install(org.jboss.as.server.deployment.DeploymentPhaseContext context) Description copied from interface:DeploymentServiceInstallerInstalls a service into the target associated with the deployment phase of the specified context.- Specified by:
installin interfaceDeploymentServiceInstaller- Parameters:
context- a deployment phase context
-