Class DefaultResourceReferenceDelegate.Builder<T>
java.lang.Object
com.inductiveautomation.ignition.gateway.config.DefaultResourceReferenceDelegate.Builder<T>
- Enclosing class:
- DefaultResourceReferenceDelegate<R>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
referenceProperty
(ReferenceProperty<T> refProp) Use this method to add a reference property if you have a custom implementation.referenceProperty
(String propertyName, Consumer<ReferencePropertyBuilder<T>> builderConsumer) Use this method to add a reference property to your reference delegate.
-
Constructor Details
-
Builder
-
-
Method Details
-
referenceProperty
public DefaultResourceReferenceDelegate.Builder<T> referenceProperty(String propertyName, Consumer<ReferencePropertyBuilder<T>> builderConsumer) Use this method to add a reference property to your reference delegate. Example:.referenceProperty("databaseName", builder -> builder .targetType(DatabaseConnectionResource.RESOURCE_TYPE) .value(MyConfigObject::databaseName) .onUpdate((newName, config) -> config.createCopyWithNewDbName(newName));
-
referenceProperty
Use this method to add a reference property if you have a custom implementation. Otherwise, usereferenceProperty(String, Consumer)
. -
build
-