You are here: Reference Information > PropertiesProvider Plugin Classes > PropertiesProvider Plugin Class Customization

PropertiesProvider Plugin Class Customization

You can write your own customized PropertiesProvider class. This should be copied into the directory NUODB_HOME/plugin/agent. If you want the NuoDB REST service to use this customized plugin, set the property propertyProvider in NUODB_HOME/etc/nuodb-rest-api.yml as in:

propertyProvider=com.nuodb.agent.myPropertiesProvider

If you want the NuoDB broker to use this customized plugin, set NUODB_AGENT_JAVA_OPTS in NUODB_CFGDIR/jvm-options to include ‑DpropertyProvider=YourPropertyProviderClass as in:

NUODB_AGENT_JAVA_OPTS="-DpropertyProvider=com.nuodb.agent.myPropertiesProvider"

It is recommended that a custom PropertiesProvider class should always provide certain properties, and then fall back to the URLPropertiesProvider plugin.