Interface Installer.Configuration<SB extends DSB,DSB extends ServiceBuilder<?>>

Type Parameters:
SB - the service builder type
DSB - the dependency service builder type
T - the source value type
V - the service value type
All Known Implementing Classes:
CapabilityServiceInstaller.DefaultBuilder, Installer.AbstractBuilder, Installer.AbstractNullaryBuilder, Installer.AbstractUnaryBuilder, ServiceInstaller.DefaultNullaryBuilder, ServiceInstaller.DefaultNullaryBuilder, ServiceInstaller.DefaultUnaryBuilder, ServiceInstaller.DefaultUnaryBuilder
Enclosing interface:
Installer<ST extends ServiceTarget>

public static interface Installer.Configuration<SB extends DSB,DSB extends ServiceBuilder<?>>
Encapsulates the configuration of an Installer.
  • Method Details

    • getInitialMode

      ServiceController.Mode getInitialMode()
      Returns the initial mode of the installed service.
      Returns:
      a service mode
    • getDependency

      Consumer<DSB> getDependency()
      Returns the dependency of this service
      Returns:
      a service dependency
    • getServiceFactory

      Function<SB,Service> getServiceFactory()
      Returns the factory of this service
      Returns:
      a service factory
    • getLifecycleTasks

      Map<LifecycleEvent,Collection<Runnable>> getLifecycleTasks()
      Returns tasks to be run per lifecycle event. The returned map is either fully populated, or an empty map, if this service has no lifecycle tasks.
      Returns:
      a potentially empty map of tasks to be run per lifecycle event.