-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# OasisPluginFramework | ||
A plug-in library based on delphi bpl package,and include some base functionality package | ||
|
||
A plug-in library based on delphi bpl package,include some base functionality package,also has an IoC container. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
unit oasis.core.appsvrc; | ||
|
||
interface | ||
|
||
uses | ||
oasis.core.dependency; | ||
|
||
type | ||
IAppServiceProvider = interface | ||
['{CBC6750F-7BCB-42AA-9B1B-DFBA1E1DE93E}'] | ||
function GetContainer: IDependencyContainer; | ||
property Container: IDependencyContainer read GetContainer; | ||
|
||
end; | ||
|
||
implementation | ||
|
||
end. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
unit oasis.core.plugin.manager; | ||
|
||
interface | ||
|
||
uses | ||
mormot.core.base, | ||
mormot.core.collections; | ||
|
||
type | ||
IOPlugin = interface; | ||
|
||
IOPluginManager = interface | ||
['{F7917846-7D71-4040-9A51-2BF77F96F256}'] | ||
function LoadFile(const FileName: RawUtf8): IOPlugin; | ||
procedure LoadFiles; | ||
function GetPluginList: IList<IOPlugin>; | ||
property Plugins: IList<IOPlugin> read GetPluginList; | ||
|
||
|
||
end; | ||
|
||
IOPlugin = interface | ||
['{BFC9DFDA-1D20-4C22-AA97-6F0CAACFA82C}'] | ||
|
||
end; | ||
|
||
implementation | ||
|
||
end. |