Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hank-cp committed Nov 27, 2023
1 parent f569e5a commit 178e2ee
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion demo-app/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spring:
database-platform: org.hibernate.dialect.PostgreSQL9Dialect
controller:
base-path: sbp
# custom-plugin-loaders:
# custom-plugin-loader:
# - demo.sbp.app.CustomPluginLoader
flyway:
enabled: true
Expand Down
6 changes: 4 additions & 2 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ with two options
plugins home folder, relative to project working DIR.
Default `plugins`

##### `spring.sbp.custom-plugin-loaders`
##### `spring.sbp.custom-plugin-loader`
Allows to provide custom plugin loaders. Provided custom `PluginLoader` should have
a constructor with one argument that accepts `PluginManager`.
a constructor with one argument that accepts `PluginManager`. By default sbp loads plugin resources (classes and resource files)
from file-system or single jar file. If you want to load plugin resources from other format, like fat-jar, you
will have to provide custom `PluginLoader`.

##### `spring.sbp.plugin-profiles`:
Specify Spring profiles to be used when creating plugins' `ApplicationContext` environment. With profile `plugin` by default.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public class SbpProperties {
*/
private String pluginsRoot = "plugins";
/**
* Allows to provide custom plugin loaders
* Allows to provide custom plugin loaders.
*/
private Class<PluginLoader> customPluginLoader;
/**
Expand Down

0 comments on commit 178e2ee

Please sign in to comment.