Jump to: navigation, search

Changes


HowTo:Create UBIK Module

1,073 bytes added, 7 October
public class TestModule : UBIK.Injection.IUbikModule
{
// Interface implementation...
}
</source>
[[Category:Injecting|Create UBIK Module]]
=== Interface: IUbikInjectionMetaData ===
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>
 
==== 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 />
64
edits