Class ReferenceVariableProvider
java.lang.Object
org.snmp4j.agent.io.prop.ReferenceVariableProvider
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.snmp4j.smi.VariablegetVariable(String name) Returns anUnresolvedReferencefor the given name, thereby marking the value as an unresolved configuration reference.
-
Constructor Details
-
ReferenceVariableProvider
public ReferenceVariableProvider()
-
-
Method Details
-
getVariable
Returns anUnresolvedReferencefor the given name, thereby marking the value as an unresolved configuration reference.- Specified by:
getVariablein interfaceVariableProvider- Parameters:
name- the name or instance OID of the referenced variable.- Returns:
- an
UnresolvedReferencewrappingname(nevernull).
-