Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Make BrotliLibraryLoader.loadBrotli() call idempotent #17

@YSakhno

Description

@YSakhno

Is it possible to make BrotliLibraryLoader.loadBrotli() method not load the native library if the library is already loaded? Currently I have to employ ClassLoader hack to list all loaded native libraries and see if brotli is already in there.

Note, that I cannot employ a flag of some kind (setting it to true or something after the first call to the aforementioned method), because my code is running as a plugin, and it is possible that some other plugin (written by someone else) already loaded native library for jbrotli.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions