Interface CapabilityServiceInstaller
- All Superinterfaces:
Installer<org.jboss.as.controller.CapabilityServiceTarget>,ResourceServiceInstaller
- All Known Implementing Classes:
CapabilityServiceInstaller.DefaultCapabilityServiceInstaller
public interface CapabilityServiceInstaller
extends ResourceServiceInstaller, Installer<org.jboss.as.controller.CapabilityServiceTarget>
A
ResourceServiceInstaller that encapsulates service installation into a CapabilityServiceTarget.- Author:
- Paul Ferraro
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilds aCapabilityServiceInstaller.static classstatic classNested 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.UnaryBuilder<B, I extends Installer<ST>, ST extends ServiceTarget, SB extends ServiceBuilder<?>, T, V>, Installer.UnaryService<T, V> -
Method Summary
Modifier and TypeMethodDescriptionstatic <T,V> CapabilityServiceInstaller.Builder<T, V> builder(org.jboss.as.controller.capability.RuntimeCapability<Void> capability, Function<T, V> mapper, Supplier<T> factory) Returns aCapabilityServiceInstallerbuilder for the specified capability whose installed service provides the value supplied by the specified factory and mapping function.static <V> CapabilityServiceInstaller.Builder<V,V> Returns aCapabilityServiceInstallerbuilder for the specified capability whose installed service provides the value supplied by the specified factory.static <V> CapabilityServiceInstaller.Builder<V,V> builder(org.jboss.as.controller.capability.RuntimeCapability<Void> capability, ServiceDependency<V> dependency) Returns aCapabilityServiceInstallerbuilder for the specified capability whose installed service provides the value supplied by the specified dependency.static <V> CapabilityServiceInstaller.Builder<V,V> Returns aCapabilityServiceInstallerbuilder for the specified capability 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.
-
Method Details
-
builder
static <V> CapabilityServiceInstaller.Builder<V,V> builder(org.jboss.as.controller.capability.RuntimeCapability<Void> capability, V value) Returns aCapabilityServiceInstallerbuilder for the specified capability whose installed service provides the specified value.- Type Parameters:
V- the service value type- Parameters:
capability- the target capabilityvalue- the service value- Returns:
- a service installer builder
-
builder
static <V> CapabilityServiceInstaller.Builder<V,V> builder(org.jboss.as.controller.capability.RuntimeCapability<Void> capability, ServiceDependency<V> dependency) Returns aCapabilityServiceInstallerbuilder for the specified capability whose installed service provides the value supplied by the specified dependency.- Type Parameters:
V- the service value type- Parameters:
capability- the target capabilitydependency- a service dependency- Returns:
- a service installer builder
-
builder
static <V> CapabilityServiceInstaller.Builder<V,V> builder(org.jboss.as.controller.capability.RuntimeCapability<Void> capability, Supplier<V> factory) Returns aCapabilityServiceInstallerbuilder for the specified capability whose installed service provides the value supplied by the specified factory.- Type Parameters:
V- the service value type- Parameters:
capability- the target capabilityfactory- provides the service value- Returns:
- a service installer builder
-
builder
static <T,V> CapabilityServiceInstaller.Builder<T,V> builder(org.jboss.as.controller.capability.RuntimeCapability<Void> capability, Function<T, V> mapper, Supplier<T> factory) Returns aCapabilityServiceInstallerbuilder for the specified capability 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:
capability- the target capabilitymapper- 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
-
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
-