Class 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 Detail

      • 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 create
        container - the container of the known components
        paramManagerOpt - the optional ParamManager needed to use global params resolution
        params - the local params
        Returns:
        the component created
      • endLoading

        public void endLoading()