Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
force-bdss
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adham Hashibon
force-bdss
Commits
fd5bdee0
Commit
fd5bdee0
authored
7 years ago
by
Stefano Borini
Browse files
Options
Downloads
Patches
Plain Diff
Documentation fix
parent
268a27af
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!71
Rename bundle to factory
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/source/plugin_development.rst
+4
-5
4 additions, 5 deletions
doc/source/plugin_development.rst
with
4 additions
and
5 deletions
doc/source/plugin_development.rst
+
4
−
5
View file @
fd5bdee0
...
...
@@ -5,9 +5,8 @@ A single Plugin can provide one or more of the pluggable entities
described elsewhere (MCO/KPICalculators/DataSources). Multiple plugins can
be installed to provide a broad range of functionalities.
Plugins must return "Bundles". Each Bundle acts as a Factory, providing
factory methods for one of the above pluggable entities and its associated
classes.
Plugins must return Factories. Each Factory provides factory methods for
one of the above pluggable entities and its associated classes.
To implement a new plugin, you must
...
...
@@ -17,9 +16,9 @@ To implement a new plugin, you must
- Define the model that this DataSource needs, by extending
``BaseDataSourceModel`` and adding, with traits, the appropriate data that
are required by your data source to perform its task.
- Define the
Bundle
, by reimplementing BaseDataSource
Bundle
and reimplementing
- Define the
Factory
, by reimplementing BaseDataSource
Factory
and reimplementing
its ``create_*`` methods to return the above entities.
- Define a ``Plugin`` by reimplementing ``BaseExtensionPlugin`` and
reimplementing its initialization defaults methods to return your
bundle
.
reimplementing its initialization defaults methods to return your
factory
.
- add the plugin class in the setup.py entry_point, under the namespace
``force.bdss.extensions``
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment