class ComponentSpec[Starter <: State, Stopper <: State] extends AnyRef
A specification of the relevant information to guide component creation.
- Starter
A phantom type parameter to mark whether the start action has been specified.
- Stopper
A phantom type parameter to mark whether the stop action has been specified.
- See also
- Grouped
- Alphabetic
- By Inheritance
- ComponentSpec
- AnyRef
- Any
- by ComponentFactoryStopperSpec
- by ComponentFactoryStarterSpec
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ComponentSpec()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from ComponentSpec[Starter, Stopper] to any2stringadd[ComponentSpec[Starter, Stopper]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (ComponentSpec[Starter, Stopper], B)
- Implicit
- This member is added by an implicit conversion from ComponentSpec[Starter, Stopper] to ArrowAssoc[ComponentSpec[Starter, Stopper]] performed by method ArrowAssoc in scala.Predef. This conversion will take place only if Starter is Unspecified (Starter =:= Unspecified) and at the same time Stopper is Unspecified (Stopper =:= Unspecified).
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
depend(deps: Dependency*): ComponentSpec.this.type
Define a dependency to be satisfied before the component can start.
Define a dependency to be satisfied before the component can start.
- deps
The dependencies to wait for before start. Note that there is an implicit conversion from LifecycleComponent. To disable keep-alive behaviour, use
<COMPONENT>.noKeepAlive.- returns
this instance
-
def
ensuring(cond: (ComponentSpec[Starter, Stopper]) ⇒ Boolean, msg: ⇒ Any): ComponentSpec[Starter, Stopper]
- Implicit
- This member is added by an implicit conversion from ComponentSpec[Starter, Stopper] to Ensuring[ComponentSpec[Starter, Stopper]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (ComponentSpec[Starter, Stopper]) ⇒ Boolean): ComponentSpec[Starter, Stopper]
- Implicit
- This member is added by an implicit conversion from ComponentSpec[Starter, Stopper] to Ensuring[ComponentSpec[Starter, Stopper]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): ComponentSpec[Starter, Stopper]
- Implicit
- This member is added by an implicit conversion from ComponentSpec[Starter, Stopper] to Ensuring[ComponentSpec[Starter, Stopper]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): ComponentSpec[Starter, Stopper]
- Implicit
- This member is added by an implicit conversion from ComponentSpec[Starter, Stopper] to Ensuring[ComponentSpec[Starter, Stopper]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from ComponentSpec[Starter, Stopper] to StringFormat[ComponentSpec[Starter, Stopper]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toStart(simple: (ExecutionContext) ⇒ Unit): ComponentSpec[Specified, Stopper]
Specify a synchronous action to invoke to start the component.
Specify a synchronous action to invoke to start the component. The action will provide the appropriate scala.concurrent.ExecutionContext to invoke further asynchronous actions.
- simple
A synchronous action to be invoked to start the component.
- returns
The ComponentSpec
- Implicit
- This member is added by an implicit conversion from ComponentSpec[Starter, Stopper] to ComponentFactoryStarterSpec[Stopper] performed by method ComponentFactoryStarterSpec in de.sebbraun.lifecycle.simple.ComponentSpec. This conversion will take place only if Starter is Unspecified (Starter =:= Unspecified) and at the same time Stopper is a subclass of State (Stopper <: State).
- Definition Classes
- ComponentFactoryStarterSpec
-
def
toStart(simple: ⇒ Unit): ComponentSpec[Specified, Stopper]
Specify a synchronous action to invoke to start the component.
Specify a synchronous action to invoke to start the component.
- simple
A synchronous action to be invoked to start the component.
- returns
The ComponentSpec
- Implicit
- This member is added by an implicit conversion from ComponentSpec[Starter, Stopper] to ComponentFactoryStarterSpec[Stopper] performed by method ComponentFactoryStarterSpec in de.sebbraun.lifecycle.simple.ComponentSpec. This conversion will take place only if Starter is Unspecified (Starter =:= Unspecified) and at the same time Stopper is a subclass of State (Stopper <: State).
- Definition Classes
- ComponentFactoryStarterSpec
-
def
toStartAsync(async: (ExecutionContext) ⇒ Future[Unit]): ComponentSpec[Specified, Stopper]
Specify an asynchronous action to invoke to start the component.
Specify an asynchronous action to invoke to start the component. The action will be provided the appropriate scala.concurrent.ExecutionContext to invoke further asynchronous actions.
- async
An asynchronous action to be invoked to start the component.
- returns
The ComponentSpec
- Implicit
- This member is added by an implicit conversion from ComponentSpec[Starter, Stopper] to ComponentFactoryStarterSpec[Stopper] performed by method ComponentFactoryStarterSpec in de.sebbraun.lifecycle.simple.ComponentSpec. This conversion will take place only if Starter is Unspecified (Starter =:= Unspecified) and at the same time Stopper is a subclass of State (Stopper <: State).
- Definition Classes
- ComponentFactoryStarterSpec
-
def
toStop(simple: (ExecutionContext) ⇒ Unit): ComponentSpec[Starter, Specified]
Specify a synchronous action to invoke to stop the component.
Specify a synchronous action to invoke to stop the component. The action will be provided the appropriate scala.concurrent.ExecutionContext to invoke further asynchronous actions.
- simple
A synchronous action to be invoked to stop the component.
- returns
The ComponentSpec
- Implicit
- This member is added by an implicit conversion from ComponentSpec[Starter, Stopper] to ComponentFactoryStopperSpec[Starter] performed by method ComponentFactoryStopperSpec in de.sebbraun.lifecycle.simple.ComponentSpec. This conversion will take place only if Starter is a subclass of State (Starter <: State) and at the same time Stopper is Unspecified (Stopper =:= Unspecified).
- Definition Classes
- ComponentFactoryStopperSpec
-
def
toStop(simple: ⇒ Unit): ComponentSpec[Starter, Specified]
Specify a synchronous action to invoke to stop the component.
Specify a synchronous action to invoke to stop the component.
- simple
A synchronous action to be invoked to stop the component.
- returns
The ComponentSpec
- Implicit
- This member is added by an implicit conversion from ComponentSpec[Starter, Stopper] to ComponentFactoryStopperSpec[Starter] performed by method ComponentFactoryStopperSpec in de.sebbraun.lifecycle.simple.ComponentSpec. This conversion will take place only if Starter is a subclass of State (Starter <: State) and at the same time Stopper is Unspecified (Stopper =:= Unspecified).
- Definition Classes
- ComponentFactoryStopperSpec
-
def
toStopAsync(async: (ExecutionContext) ⇒ Future[Unit]): ComponentSpec[Starter, Specified]
Specify an asynchronous action to invoke to stop the component.
Specify an asynchronous action to invoke to stop the component.
- async
An asynchronous action to be invoked to stop the component.
- returns
The ComponentSpec
- Implicit
- This member is added by an implicit conversion from ComponentSpec[Starter, Stopper] to ComponentFactoryStopperSpec[Starter] performed by method ComponentFactoryStopperSpec in de.sebbraun.lifecycle.simple.ComponentSpec. This conversion will take place only if Starter is a subclass of State (Starter <: State) and at the same time Stopper is Unspecified (Stopper =:= Unspecified).
- Definition Classes
- ComponentFactoryStopperSpec
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
→[B](y: B): (ComponentSpec[Starter, Stopper], B)
- Implicit
- This member is added by an implicit conversion from ComponentSpec[Starter, Stopper] to ArrowAssoc[ComponentSpec[Starter, Stopper]] performed by method ArrowAssoc in scala.Predef. This conversion will take place only if Starter is Unspecified (Starter =:= Unspecified) and at the same time Stopper is Unspecified (Stopper =:= Unspecified).
- Definition Classes
- ArrowAssoc