1645N/A# Copyright (c) 2016, Oracle
and/or its affiliates. All rights reserved.
1645N/A# Permission is hereby granted, free of charge, to any person obtaining a
1645N/A# copy of this software and associated documentation files (the "Software"),
1645N/A# to deal in the Software without restriction, including without limitation
1645N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
1645N/A#
and/or sell copies of the Software, and to permit persons to whom the
1645N/A# Software is furnished to do so, subject to the following conditions:
1645N/A# The above copyright notice and this permission notice (including the next
1645N/A# paragraph) shall be included in all copies or substantial portions of the
1645N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1645N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1645N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
1645N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1645N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
1645N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1645N/A+ LOG((CLOG_DEBUG "loading plugin: %s", LIBNS));
1645N/A+ void* handle = dlopen(LIBNS, RTLD_LAZY);
1645N/A+ LOG((CLOG_ERR "failed to load plugin '%s', error: %s",
1645N/A+ LOG((CLOG_DEBUG "plugin loaded: %s",
1645N/A String pluginsDir = getPluginsDir();