public class SnmpAssetAdapterConfigFactory extends Object
SnmpAssetAdapterConfigFactory
Constructor and Description |
---|
SnmpAssetAdapterConfigFactory() |
Modifier and Type | Method and Description |
---|---|
SnmpAssetAdapterConfig |
getInstance()
Return the singleton instance of this factory.
|
void |
reload()
Reload the config from the default config file
|
protected void |
save(String xml)
saveXml
|
public SnmpAssetAdapterConfigFactory() throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException
public void reload() throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
IOException
- Thrown if the specified config file cannot be read/loadedorg.exolab.castor.xml.MarshalException
- Thrown if the file does not conform to the schema.org.exolab.castor.xml.ValidationException
- Thrown if the contents do not match the required schema.IOException
- if any.org.exolab.castor.xml.MarshalException
- if any.org.exolab.castor.xml.ValidationException
- if any.protected void save(String xml) throws IOException
saveXml
xml
- a String
object.IOException
- if any.public SnmpAssetAdapterConfig getInstance()
IOException
org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.MarshalException
IllegalStateException
- Thrown if the factory has not yet been initialized.Copyright © 2017. All rights reserved.