Class ReferenceFinderBuilder<C>
java.lang.Object
com.inductiveautomation.ignition.gateway.config.ReferenceFinderBuilder<C>
- Type Parameters:
C
- The type of the configuration object. This may be the config type "R" that matches aResourceTypeMeta
, or it may be the profile type "P" of anExtensionPointResourceTypeMeta
, or the settings object of anExtensionPoint
, depending on the context of where this reference finder is being used.
Helps build a
ReferenceFinder
for a specific property and a known target resource type.- See Also:
-
DefaultResourceTypeMeta.Builder#referenceProperty(String, Consumer)
ExtensionPointResourceTypeMeta.Builder#referenceProperty(String, Consumer)
AbstractExtensionPoint.addReferenceProperty(String, Consumer)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmatch
(BiPredicate<C, String> referenceMatch) onUpdate
(BiFunction<C, String, C> updateConfig) targetType
(ResourceType targetResourceType)
-
Constructor Details
-
ReferenceFinderBuilder
-
-
Method Details
-
targetType
- Parameters:
targetResourceType
- The resource type of the target resource that this reference finder is looking for.
-
match
- Parameters:
referenceMatch
- Predicate that finds matching references to a target. The type of the target will be constrained to the type specified bytargetType(ResourceType)
.
-
onUpdate
- Parameters:
updateConfig
- A callback that returns a new copy of the configuration object with the reference updated.
-