Package org.wildfly.service
Class Installer.AbstractBuilder<B,I extends Installer<ST>,ST extends org.jboss.msc.service.ServiceTarget,SB extends DSB,DSB extends org.jboss.msc.service.ServiceBuilder<?>>
- java.lang.Object
-
- org.wildfly.service.Installer.AbstractBuilder<B,I,ST,SB,DSB>
-
- All Implemented Interfaces:
Installer.Builder<B,I,ST,DSB>,Installer.Configuration<SB,DSB>
- Direct Known Subclasses:
Installer.AbstractNullaryBuilder,Installer.AbstractUnaryBuilder
public abstract static class Installer.AbstractBuilder<B,I extends Installer<ST>,ST extends org.jboss.msc.service.ServiceTarget,SB extends DSB,DSB extends org.jboss.msc.service.ServiceBuilder<?>> extends Object implements Installer.Builder<B,I,ST,DSB>, Installer.Configuration<SB,DSB>
-
-
Constructor Summary
Constructors Constructor Description AbstractBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete 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.protected abstract Bbuilder()Consumer<DSB>getDependency()Returns the dependency of this serviceorg.jboss.msc.service.ServiceController.ModegetInitialMode()Returns the initial mode of the installed service.Brequires(Consumer<DSB> dependency)Configures a dependency of the installed service.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.service.Installer.Builder
build, requires
-
Methods inherited from interface org.wildfly.service.Installer.Configuration
getServiceFactory
-
-
-
-
Method Detail
-
builder
protected abstract B builder()
-
asPassive
public B asPassive()
Description copied from interface:Installer.BuilderConfigures 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.
-
asActive
public B asActive()
Description copied from interface:Installer.BuilderConfigures the installed service to start immediately after installation, forcing any dependencies to start.
-
requires
public B requires(Consumer<DSB> dependency)
Description copied from interface:Installer.BuilderConfigures a dependency of the installed service.
-
getInitialMode
public org.jboss.msc.service.ServiceController.Mode getInitialMode()
Description copied from interface:Installer.ConfigurationReturns the initial mode of the installed service.- Specified by:
getInitialModein interfaceInstaller.Configuration<B,I extends Installer<ST>>- Returns:
- a service mode
-
getDependency
public Consumer<DSB> getDependency()
Description copied from interface:Installer.ConfigurationReturns the dependency of this service- Specified by:
getDependencyin interfaceInstaller.Configuration<B,I extends Installer<ST>>- Returns:
- a service dependency
-
-