public interface CustomModuleFactory
Modifier and Type | Method and Description |
---|---|
Module |
createModule(Application appli,
java.lang.String name)
Creates a custom module.
|
CustomModuleDefinition |
createModuleDefinition(ApplicationDefinition appli,
java.lang.String name,
long id)
Creates a custom module definition.
|
default java.util.Map<java.lang.String,java.lang.Class<?>> |
getFrameworkPropertiesTypes()
Return the framework properties supported by the factory and their associated property types.
|
default java.lang.Object |
getFrameworkProperty(java.lang.String key)
Return a framework property value.
|
default java.util.Set<java.lang.String> |
getMandatoryModuleParameters()
Return the keys for the mandatory module implementation parameters.
|
java.lang.Class<?> |
getModuleDefinitionClass()
Return the class used to define custom modules for this factory.
|
default java.util.Map<java.lang.String,java.lang.Class<?>> |
getModuleParameterTypes()
Return the module implementation parameters supported by the custom module and their associated types.
|
default void |
setFrameworkProperty(java.lang.String key,
java.lang.Object value)
Set a framework property value.
|
default java.util.Map<java.lang.String,java.lang.Class<?>> getFrameworkPropertiesTypes()
default void setFrameworkProperty(java.lang.String key, java.lang.Object value)
getFrameworkPropertiesTypes()
.
Do nothing by default.key
- the framework property keyvalue
- the framework property valuedefault java.lang.Object getFrameworkProperty(java.lang.String key)
getFrameworkPropertiesTypes()
.
Return null by default.key
- the framework property keydefault java.util.Map<java.lang.String,java.lang.Class<?>> getModuleParameterTypes()
CustomModuleDefinition.setModuleParameter(java.lang.String, java.lang.Object)
default java.util.Set<java.lang.String> getMandatoryModuleParameters()
CustomModuleDefinition createModuleDefinition(ApplicationDefinition appli, java.lang.String name, long id)
appli
- the application definitionname
- the module nameid
- the module IDModule createModule(Application appli, java.lang.String name)
appli
- the applicationname
- the module namejava.lang.Class<?> getModuleDefinitionClass()
Copyright ©2017-2023 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence