[Contents] [Prev] [Next] [Index] [Report an Error]

# 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

#### Related Topics

- Instantiating the NIC Factory Class
- Instantiating a Configuration Manager
- Passing a Reference to the Configuration Manager to the NIC Factory
- Overview of NIC Proxy Configuration

[Contents] [Prev] [Next] [Index] [Report an Error]