Trait PluginRepositoryManager

Source
pub trait PluginRepositoryManager:
    Send
    + Sync
    + Lifecycle {
    // Required methods
    fn scan_deploy_repository(&self);
    fn remove_duplicates(&self);
    fn scan_plugin_repository(&self);
    fn watch_hot_deploy(&self);
    fn unwatch_hot_deploy(&self);
}

Required Methods§

Source

fn scan_deploy_repository(&self)

Scans the plugin hot deploy folder. Moves plugins to the plugin installation folder.

Source

fn remove_duplicates(&self)

Scans the plugin installation folder and removes duplicates. If the same plugins exists multiple times, the plugin with the highest timestamp stays while all other are deleted.

Source

fn scan_plugin_repository(&self)

Scans the plugin installation folder. Creates and registers new plugins to the plugin container manager.

Source

fn watch_hot_deploy(&self)

Scans the plugin hot deploy folder.

If a new plugin is detected it will be moved to the plugin installation folder and a new plugin container will be created and registered.

If an existing plugin is detected a redeployment will be initiated.

Source

fn unwatch_hot_deploy(&self)

Trait Implementations§

Source§

impl Injectable for dyn PluginRepositoryManager + Sync + Send

Implementors§