Package org.wildfly.service
Class ServiceInstaller.DefaultUnaryBuilder<T,V>
- java.lang.Object
-
- org.wildfly.service.Installer.AbstractBuilder<B,I,ST,SB,DSB>
-
- org.wildfly.service.Installer.AbstractUnaryBuilder<ServiceInstaller.UnaryBuilder<T,V>,ServiceInstaller,org.jboss.msc.service.ServiceTarget,org.jboss.msc.service.ServiceBuilder<?>,org.jboss.msc.service.ServiceBuilder<?>,T,V>
-
- org.wildfly.service.ServiceInstaller.DefaultUnaryBuilder<T,V>
-
- All Implemented Interfaces:
Function<org.jboss.msc.service.ServiceBuilder<?>,org.jboss.msc.Service>,Installer.Builder<ServiceInstaller.UnaryBuilder<T,V>,ServiceInstaller,org.jboss.msc.service.ServiceTarget,org.jboss.msc.service.ServiceBuilder<?>>,Installer.Configuration<org.jboss.msc.service.ServiceBuilder<?>,org.jboss.msc.service.ServiceBuilder<?>>,Installer.UnaryBuilder<ServiceInstaller.UnaryBuilder<T,V>,ServiceInstaller,org.jboss.msc.service.ServiceTarget,org.jboss.msc.service.ServiceBuilder<?>,T,V>,ServiceInstaller.AsyncBuilder<ServiceInstaller.UnaryBuilder<T,V>>,ServiceInstaller.UnaryBuilder<T,V>
- Enclosing interface:
- ServiceInstaller
public static class ServiceInstaller.DefaultUnaryBuilder<T,V> extends Installer.AbstractUnaryBuilder<ServiceInstaller.UnaryBuilder<T,V>,ServiceInstaller,org.jboss.msc.service.ServiceTarget,org.jboss.msc.service.ServiceBuilder<?>,org.jboss.msc.service.ServiceBuilder<?>,T,V> implements ServiceInstaller.UnaryBuilder<T,V>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceInstaller.UnaryBuilder<T,V>async(Supplier<Executor> executor)Indicates that the installed service should start and, if a stop task was specified, stop asynchronously.ServiceInstallerbuild()Builds a service installer.protected ServiceInstaller.UnaryBuilder<T,V>builder()-
Methods inherited from class org.wildfly.service.Installer.AbstractUnaryBuilder
apply, getServiceFactory, hasStopTask, onStart, onStop, provides, withCaptor
-
Methods inherited from class org.wildfly.service.Installer.AbstractBuilder
asActive, asPassive, getDependency, getInitialMode, requires
-
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
asActive, asPassive, requires, requires
-
Methods inherited from interface org.wildfly.service.Installer.UnaryBuilder
onStart, onStop, provides, withCaptor
-
-
-
-
Method Detail
-
async
public ServiceInstaller.UnaryBuilder<T,V> async(Supplier<Executor> executor)
Description copied from interface:ServiceInstaller.AsyncBuilderIndicates that the installed service should start and, if a stop task was specified, stop asynchronously.- Specified by:
asyncin interfaceServiceInstaller.AsyncBuilder<T>- Parameters:
executor- supplies the executor used for asynchronous execution- Returns:
- a reference to this builder
-
build
public ServiceInstaller build()
Description copied from interface:Installer.BuilderBuilds a service installer.- Specified by:
buildin interfaceInstaller.Builder<ServiceInstaller.UnaryBuilder<T,V>,ServiceInstaller,org.jboss.msc.service.ServiceTarget,org.jboss.msc.service.ServiceBuilder<?>>- Returns:
- a service installer
-
builder
protected ServiceInstaller.UnaryBuilder<T,V> builder()
- Specified by:
builderin classInstaller.AbstractBuilder<ServiceInstaller.UnaryBuilder<T,V>,ServiceInstaller,org.jboss.msc.service.ServiceTarget,org.jboss.msc.service.ServiceBuilder<?>,org.jboss.msc.service.ServiceBuilder<?>>
-
-