public class ComponentModule extends BaseModule<ComponentModule,ComponentInfo> implements Validable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
valid
validity flag
|
moduleState| Constructor and Description |
|---|
ComponentModule(ComponentInfo componentInfo)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addError(String error) |
void |
addErrors(Collection<String> errors) |
Collection<String> |
getErrors() |
String |
getId()
Obtain the id of the module.
|
ComponentInfo |
getModuleInfo()
Obtain the associated module information.
|
boolean |
isDeleted()
Determine whether the module has been marked for deletion.
|
boolean |
isValid() |
void |
resolve(ComponentModule parent,
Map<String,StackModule> allStacks,
Map<String,ServiceModule> commonServices,
Map<String,ExtensionModule> extensions)
Resolve the module state with the specified parent.
|
void |
setValid(boolean valid) |
String |
toString() |
finalizeChildModules, finalizeModule, getModuleState, mergeChildModulespublic ComponentModule(ComponentInfo componentInfo)
componentInfo - associated component infopublic void resolve(ComponentModule parent, Map<String,StackModule> allStacks, Map<String,ServiceModule> commonServices, Map<String,ExtensionModule> extensions)
StackDefinitionModuleresolve in interface StackDefinitionModule<ComponentModule,ComponentInfo>parent - the parent that this module will be merged withallStacks - collection of all stack modules in the treecommonServices - collection of all common service modules in the treeextensions - collection of all extension modules in the treepublic ComponentInfo getModuleInfo()
StackDefinitionModulegetModuleInfo in interface StackDefinitionModule<ComponentModule,ComponentInfo>public boolean isDeleted()
StackDefinitionModuleisDeleted in interface StackDefinitionModule<ComponentModule,ComponentInfo>public String getId()
StackDefinitionModulegetId in interface StackDefinitionModule<ComponentModule,ComponentInfo>public boolean isValid()
isValid in interface StackDefinitionModule<ComponentModule,ComponentInfo>isValid in interface Validablepublic void setValid(boolean valid)
setValid in interface StackDefinitionModule<ComponentModule,ComponentInfo>setValid in interface Validablevalid - set validity flagpublic Collection<String> getErrors()
public void addErrors(Collection<String> errors)
Copyright © 2022 Apache Software Foundation. All rights reserved.