Instantiating the NIC Proxy

To enable the application to instantiate a NIC proxy:

  • Call the following method:
    NIC nicProxy = nicFactory.getNicComponent(nicNameSpace, configMgr)

    Alternatively, if the expected data value (specified for the property nic.value in the NIC proxy configuration) is an SAE reference, you can call the following method:

    SaeLocator nicProxy = nicFactory.getSaeLocator(nicNameSpace, configMgr);
    • nicFactory—Instance of the NIC factory
    • nicNameSpace—String that specifies the configuration namespace where you defined the properties for the NIC proxy
      • If you define the NIC properties in the bootstrap file, specify the root namespace, “ /” .
        NIC nicProxy = nicFactory.getNicComponent("/", configMgr)
      • If you define the properties in the directory, specify the namespace relative to the property Config.net.juniper.smgt.lib.config.staticConfigDN, which you specified in the bootstrap file.
        NIC nicProxy = nicFactory.getNicComponent("/Applications/Quota", configMgr)
    • configMgr—Instance of the configuration manager, the value returned from the getConfigMgr() method

Copyright © 2008, Juniper Networks, Inc. All rights reservedTrademark Notice.