Package | Description |
---|---|
ratpack.service |
Services participate in the application start/stop lifecycle.
|
Modifier and Type | Method and Description |
---|---|
default ServiceDependenciesSpec |
ServiceDependenciesSpec.dependsOn(java.lang.Class<?> dependents,
java.lang.Class<?> dependencies)
A convenience form of
dependsOn(Predicate, Predicate) where the predicates are based on compatibility with the given types. |
default <T1,T2> ServiceDependenciesSpec |
ServiceDependenciesSpec.dependsOn(java.lang.Class<T1> dependentsType,
Predicate<? super T1> dependents,
java.lang.Class<T2> dependenciesType,
Predicate<? super T2> dependencies)
Specifies that all services that are of the given
dependentsType that match the dependents predicate are dependent on all services that are of the dependenciesType that match the dependencies predicate. |
ServiceDependenciesSpec |
ServiceDependenciesSpec.dependsOn(Predicate<? super Service> dependents,
Predicate<? super Service> dependencies)
Specifies that all services that match the
dependents predicate are dependent on all services that match the dependencies predicate. |
Modifier and Type | Method and Description |
---|---|
void |
ServiceDependencies.define(ServiceDependenciesSpec spec)
Declares service depenencies via the given spec.
|