Package org.wildfly.service
Interface Installer.Builder<B,I extends Installer<ST>,ST extends org.jboss.msc.service.ServiceTarget,SB extends org.jboss.msc.service.ServiceBuilder<?>>
-
- Type Parameters:
B- the builder typeI- the installer typeST- the service target typeSB- the service builder type
- All Known Subinterfaces:
Installer.UnaryBuilder<B,I,ST,SB,T,V>,ServiceInstaller.Builder,ServiceInstaller.UnaryBuilder<T,V>
- All Known Implementing Classes:
Installer.AbstractBuilder,Installer.AbstractNullaryBuilder,Installer.AbstractUnaryBuilder,ServiceInstaller.DefaultNullaryBuilder,ServiceInstaller.DefaultUnaryBuilder
public static interface Installer.Builder<B,I extends Installer<ST>,ST extends org.jboss.msc.service.ServiceTarget,SB extends org.jboss.msc.service.ServiceBuilder<?>>Builds an installer of a service.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description BasActive()Configures the installed service to start immediately after installation, forcing any dependencies to start.BasPassive()Configures the installed service to automatically start when all of its dependencies are available and to automatically stop when any of its dependencies are no longer available.Ibuild()Builds a service installer.default Brequires(Iterable<? extends Consumer<SB>> dependencies)Configures dependencies of the installed service.Brequires(Consumer<SB> dependency)Configures a dependency of the installed service.
-
-
-
Method Detail
-
requires
B requires(Consumer<SB> dependency)
Configures a dependency of the installed service.- Parameters:
dependency- a dependency- Returns:
- a reference to this builder
-
requires
default B requires(Iterable<? extends Consumer<SB>> dependencies)
Configures dependencies of the installed service.- Parameters:
dependencies- a variable number of dependencies- Returns:
- a reference to this builder
-
asPassive
B asPassive()
Configures the installed service to automatically start when all of its dependencies are available and to automatically stop when any of its dependencies are no longer available.- Returns:
- a reference to this builder
-
asActive
B asActive()
Configures the installed service to start immediately after installation, forcing any dependencies to start.- Returns:
- a reference to this builder
-
build
I build()
Builds a service installer.- Returns:
- a service installer
-
-