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 Details

    • startLoading

      public static ComponentSpaceLoader startLoading(ComponentSpaceWritable componentSpaceWritable, AspectPlugin 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 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
    • injectMembers

      public static void injectMembers(Object instance, Container container, Optional<ParamManager> paramManagerOpt, Map<String,String> params)
    • endLoading

      public void endLoading()