Class ComponentSpaceLoader
java.lang.Object
io.vertigo.core.node.component.loader.ComponentSpaceLoader
The componentLoader class defines the way to load the components defined in the config into componentSpace.
- Author:
- pchretien
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TcreateInstance(Class<T> clazz, Container container, Optional<ParamManager> paramManagerOpt, Map<String, String> params) Creates a component that use the injector but adds params support.voidstatic voidinjectMembers(Object instance, Container container, Optional<ParamManager> paramManagerOpt, Map<String, String> params) loadAllComponentsAndAspects(List<ModuleConfig> moduleConfigs) Add all the components defined in the moduleConfigs into the componentSpace.loadBootComponents(List<CoreComponentConfig> componentConfigs) static ComponentSpaceLoaderstartLoading(ComponentSpaceWritable componentSpaceWritable, AspectPlugin aopPlugin)
-
Method Details
-
startLoading
public static ComponentSpaceLoader startLoading(ComponentSpaceWritable componentSpaceWritable, AspectPlugin aopPlugin) -
loadBootComponents
-
loadAllComponentsAndAspects
Add all the components defined in the moduleConfigs into the componentSpace.- Parameters:
moduleConfigs- the config of the module to add.
-
createInstance
public static <T> T createInstance(Class<T> clazz, Container container, Optional<ParamManager> paramManagerOpt, Map<String, String> params) Creates a component that use the injector but adds params support.- Parameters:
clazz- the clazz of the object to createcontainer- the container of the known componentsparamManagerOpt- the optional ParamManager needed to use global params resolutionparams- the local params- Returns:
- the component created
-
injectMembers
-
endLoading
public void endLoading()
-