Package io.openems.edge.core.appmanager
Class AppConfiguration.AppConfigurationBuilder
java.lang.Object
io.openems.edge.core.appmanager.AppConfiguration.AppConfigurationBuilder
- All Implemented Interfaces:
OnlyIf<AppConfiguration.AppConfigurationBuilder>
,Self<AppConfiguration.AppConfigurationBuilder>
,ThrowingOnlyIf<AppConfiguration.AppConfigurationBuilder>
- Enclosing class:
AppConfiguration
public static final class AppConfiguration.AppConfigurationBuilder
extends Object
implements Self<AppConfiguration.AppConfigurationBuilder>, OnlyIf<AppConfiguration.AppConfigurationBuilder>, ThrowingOnlyIf<AppConfiguration.AppConfigurationBuilder>
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddDependencies
(DependencyDeclaration... dependencyDeclaration) Adds the dependencies to theAppConfiguration
.addDependencies
(Collection<DependencyDeclaration> dependencyDeclaration) Adds the dependencies to theAppConfiguration
.addDependency
(DependencyDeclaration dependencyDeclaration) Adds a single dependency to theAppConfiguration
.Adds aTask
to the configuration.final AppConfiguration
build()
self()
Gets itself.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.openems.edge.core.appmanager.ThrowingOnlyIf
throwingOnlyIf
-
Field Details
-
tasks
-
dependencies
-
-
Method Details
-
addTask
- Parameters:
task
- the task to add- Returns:
- this
-
addDependency
public AppConfiguration.AppConfigurationBuilder addDependency(DependencyDeclaration dependencyDeclaration) Adds a single dependency to theAppConfiguration
.- Parameters:
dependencyDeclaration
- the dependency to add- Returns:
- this
-
addDependencies
public AppConfiguration.AppConfigurationBuilder addDependencies(DependencyDeclaration... dependencyDeclaration) Adds the dependencies to theAppConfiguration
.- Parameters:
dependencyDeclaration
- the dependencies to add- Returns:
- this
-
addDependencies
public AppConfiguration.AppConfigurationBuilder addDependencies(Collection<DependencyDeclaration> dependencyDeclaration) Adds the dependencies to theAppConfiguration
.- Parameters:
dependencyDeclaration
- the dependencies to add- Returns:
- this
-
build
-
self
Description copied from interface:Self
Gets itself.- Specified by:
self
in interfaceSelf<AppConfiguration.AppConfigurationBuilder>
- Returns:
- this
-