Class ComponentSpaceLoader
- java.lang.Object
-
- io.vertigo.core.node.component.loader.ComponentSpaceLoader
-
public final class ComponentSpaceLoader extends Object
The componentLoader class defines the way to load the components defined in the config into componentSpace.- Author:
- pchretien
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.void
endLoading()
static void
injectMembers(Object instance, Container container, Optional<ParamManager> paramManagerOpt, Map<String,String> params)
ComponentSpaceLoader
loadAllComponentsAndAspects(List<ModuleConfig> moduleConfigs)
Add all the components defined in the moduleConfigs into the componentSpace.ComponentSpaceLoader
loadBootComponents(List<CoreComponentConfig> componentConfigs)
static ComponentSpaceLoader
startLoading(ComponentSpaceWritable componentSpaceWritable, AopPlugin aopPlugin)
-
-
-
Method Detail
-
startLoading
public static ComponentSpaceLoader startLoading(ComponentSpaceWritable componentSpaceWritable, AopPlugin aopPlugin)
-
loadBootComponents
public ComponentSpaceLoader loadBootComponents(List<CoreComponentConfig> componentConfigs)
-
loadAllComponentsAndAspects
public ComponentSpaceLoader loadAllComponentsAndAspects(List<ModuleConfig> moduleConfigs)
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
public static void injectMembers(Object instance, Container container, Optional<ParamManager> paramManagerOpt, Map<String,String> params)
-
endLoading
public void endLoading()
-
-