Class ReferenceVariableProvider

java.lang.Object
org.snmp4j.agent.io.prop.ReferenceVariableProvider
All Implemented Interfaces:
VariableProvider

public class ReferenceVariableProvider extends Object implements VariableProvider
A VariableProvider that never resolves a variable to a concrete runtime value but instead returns an UnresolvedReference preserving the requested name/OID. It is used when a PropertyMOInput configuration is parsed for inspection/documentation purposes (no running agent), so that {$name} value references and ${name}/$#{name} OID-index references are kept visible instead of being silently discarded.
Since:
3.9.2
Version:
3.9.2
Author:
SNMP4J.org
  • Constructor Details

    • ReferenceVariableProvider

      public ReferenceVariableProvider()
  • Method Details

    • getVariable

      public org.snmp4j.smi.Variable getVariable(String name)
      Returns an UnresolvedReference for the given name, thereby marking the value as an unresolved configuration reference.
      Specified by:
      getVariable in interface VariableProvider
      Parameters:
      name - the name or instance OID of the referenced variable.
      Returns:
      an UnresolvedReference wrapping name (never null).