Class FallbackPropertyResolver
- java.lang.Object
-
- com.inductiveautomation.ignition.common.config.FallbackPropertyResolver
-
- All Implemented Interfaces:
PropertyResolver
public class FallbackPropertyResolver extends java.lang.Object implements PropertyResolver
APropertyResolver
that first checks a delegate property resolver, if defined, and then on failure simply creates a new Property<Object> using the provided id and returns it. This ensures that a property is always returned.
-
-
Constructor Summary
Constructors Constructor Description FallbackPropertyResolver()
FallbackPropertyResolver(PropertyResolver internal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Property<?>
resolve(java.lang.String id)
Returns the property represented by the id, or null if the property cannot be found.
-
-
-
Constructor Detail
-
FallbackPropertyResolver
public FallbackPropertyResolver()
-
FallbackPropertyResolver
public FallbackPropertyResolver(PropertyResolver internal)
-
-
Method Detail
-
resolve
public Property<?> resolve(java.lang.String id)
Description copied from interface:PropertyResolver
Returns the property represented by the id, or null if the property cannot be found.- Specified by:
resolve
in interfacePropertyResolver
-
-