Class DefaultResourceScriptDelegate.Builder
java.lang.Object
com.inductiveautomation.ignition.gateway.config.DefaultResourceScriptDelegate.Builder
- Enclosing class:
- DefaultResourceScriptDelegate
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
buildCapabilitySet
(@NotNull Consumer<Set<ResourceScriptDelegate.ScriptCapability>> capabilitySetBuilder) Builds a set of capabilities.withCapabilitySet
(@NotNull Set<ResourceScriptDelegate.ScriptCapability> capabilitySet) Provide a constructed set defining the capabilities this resource exposes to thesystem.config
scripting namespace.
-
Method Details
-
withCapabilitySet
public DefaultResourceScriptDelegate.Builder withCapabilitySet(@NotNull @NotNull Set<ResourceScriptDelegate.ScriptCapability> capabilitySet) Provide a constructed set defining the capabilities this resource exposes to thesystem.config
scripting namespace.- Throws:
IllegalStateException
- ifbuildCapabilitySet(Consumer)
was already called.
-
buildCapabilitySet
public DefaultResourceScriptDelegate.Builder buildCapabilitySet(@NotNull @NotNull Consumer<Set<ResourceScriptDelegate.ScriptCapability>> capabilitySetBuilder) Builds a set of capabilities. This allows you to build a custom set of capabilities this resource exposes to thesystem.config
scripting namespace.- Throws:
IllegalStateException
- ifwithCapabilitySet(Set)
was already called.
-
build
-