Difference between revisions of "HowTo:Create UBIK Module"
m (→Interface: IUbikModule) |
|||
| Line 16: | Line 16: | ||
public class TestModule : UBIK.Injection.IUbikModule | public class TestModule : UBIK.Injection.IUbikModule | ||
{ | { | ||
| − | |||
} | } | ||
</source> | </source> | ||
| − | + | ||
=== Interface: IUbikInjectionMetaData === | === Interface: IUbikInjectionMetaData === | ||
| Line 83: | Line 82: | ||
public class TestModule : UBIK.Injection.IUbikModule | public class TestModule : UBIK.Injection.IUbikModule | ||
{ | { | ||
| + | public ISystemDefinitionProvider SystemDefinitionsProvider | ||
| + | { | ||
| + | get | ||
| + | { | ||
| + | return TestSysDefProvider.Instance; | ||
| + | } | ||
| + | } | ||
| + | public void Initialize(UBIKEnvironment environment) | ||
| + | { | ||
| + | } | ||
| + | |||
| + | public bool Initialized() | ||
| + | { | ||
| + | return true; | ||
| + | } | ||
| + | |||
| + | public void Terminate() | ||
| + | { | ||
| + | } | ||
| + | |||
| + | public List<ModuleInfo> DependencyModules | ||
| + | { | ||
| + | get; | ||
| + | } = new List<ModuleInfo>(); | ||
} | } | ||
</source> | </source> | ||
| + | |||
| + | ==== To be implemented for IUbikModule ==== | ||
| + | {| class="wikitable" | width = "100%" | ||
| + | |- | ||
| + | ! Name !! Type !! Description | ||
| + | |- | ||
| + | | SystemDefinitionsProvider || ISystemDefinitionProvider || The instance of the SystemDefinitions for the respective module is provided. | ||
| + | |- | ||
| + | | Initialize|| void || Initializes the UBIKEnvironment for the module. | ||
| + | |- | ||
| + | | Initialized|| bool || Returns true or false, depending on whether the UBIKEnvironment is initialized or not. | ||
| + | |- | ||
| + | | Terminate || void|| Terminates the UBIKEnvironment if it has been initialized. | ||
| + | |- | ||
| + | | DependencyModules || List<ModuleInfo> || Returns the module information for which it has a dependency. | ||
| + | |- | ||
| + | |} | ||
<headertabs /> | <headertabs /> | ||
Revision as of 14:08, 7 October 2024
UBIK® Modules are loaded dynamically into the UBIK® Kernel by the UBIK® Injection Management based on the Microsoft Extensibility Framework (MEF).
